Ejemplo n.º 1
0
        public async Task <IActionResult> GetSpecialitysInUniversityAsync([FromRoute] int skip, [FromRoute] int take, [FromRoute] int universityId)
        {
            try
            {
                var result = await _specialityService.GetSpecialitysInUniversity(skip, take, universityId);

                return(StatusCode(200, result));
            }
            catch (Exception ex)
            {
                _logger.Error(ex);
                return(StatusCode(500, "Internal server error"));
            }
        }