public IHttpActionResult PostMark(Mark mark) { if (!ModelState.IsValid) { return(BadRequest(ModelState)); } _repo.AddMark(mark); _repo.SaveChanges(); return(Ok(mark)); }