public ActionResult ConfirmSendTo1CTmcs(Guid id) { ApplicationPoaRepository repo = new ApplicationPoaRepository(false); var tmcin = repo.GetAsQuarable(o => o.Id == id).FirstOrDefault(); if (tmcin != null) { tmcin.StateType = TmcIn.TmcInStatuses.SendedAdmission1C; repo.Update(tmcin); repo.Save(); } return(Json(id, JsonRequestBehavior.AllowGet)); }