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