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

            return(Ok(grade));
        }