Пример #1
0
        public async Task <IActionResult> GetAsync(int universityId)
        {
            var result = await _universityService.GetByIdAsync(universityId);

            if (!result.Success)
            {
                return(BadRequest(result.Message));
            }
            var universityResource = _mapper.Map <University, UniversityResource>(result.Resource);

            return(Ok(universityResource));
        }