Пример #1
0
 public IActionResult GetById(int id)
 {
     try
     {
         return(Ok(_logic.GetById(id)));
     }
     catch (Exception e)
     {
         return(BadRequest(e.Message));
     }
 }
Пример #2
0
        public IActionResult GetById([FromRoute] Guid gradeId)
        {
            var grade = _gradeLogic.GetById(gradeId);

            return(Ok(grade));
        }