public IHttpActionResult GetMark(int id) { var mark = markRepository.GetMark(id); if (mark == null) { return(NotFound()); } return(Ok(mark)); }