Пример #1
0
        public async Task <IActionResult> GetStatuses()
        {
            var statuses = await _repo.GetStatuses();

            var statusesToReturn = _mapper.Map <IEnumerable <StatusToReturn> > (statuses);

            return(Ok(statusesToReturn));
        }