public IActionResult Get(Guid id) { var homework = homeworks.Get(id); if (homework == null) { return(NotFound()); } return(Ok(HomeworkModel.ToModel(homework))); }
public IActionResult Get(Guid id) { Homework homework = logic.Get(id); if (homework == null) { return(NotFound()); } return(Ok(homework)); }