sources/src/Monetco.Host/Controllers/SimulatorController.cs
/// <summary>
/// Get all MFM requests for chosen ID
/// </summary>
/// <param name="id">additional ID from URL</param>
/// <returns>List of requests</returns>
Get all MFM requests for chosen ID
Get all MFM requests for chosen ID
[HttpGet("{id}/requests")]
        public List<AppRequest> GetRequestsById([FromRoute]string id)
        {
            if (_service.GetRequestsById(id) != null)
            {
                var req =  _service.GetRequestsById(id);
                return req;
            }
            return new List<AppRequest>();
        }
[ HttpGet ( " " ) ] public List < AppRequest > GetRequestsById ( [ FromRoute ] string id ) { if ( _service . GetRequestsById ( id ) != null ) { var req = _service . GetRequestsById ( id ) ; return req ; } return new List < AppRequest > ( ) ; }
Get all MFM requests for chosen ID
Get all MFM requests for chosen ID
List of requests
List of requests
string
[FromRoute]
id
additional ID from URL
additional ID from URL