Пример #1
0
        public IActionResult Get(int id)
        {
            var flow = _flowService.Get(id);

            if (flow == null)
            {
                return(NotFound());
            }
            return(Ok(flow.ToApiModel()));
        }
        public IActionResult Get(Guid id)
        {
            var flow = _service.Get(id);

            if (flow == null)
            {
                return(NotFound());
            }

            return(Ok(flow));
        }
Пример #3
0
        public async Task <IActionResult> Get()
        {
            var flows = await _flowService.Get();

            return(Ok(_mapper.Map <List <FlowResponseModel> >(flows)));
        }