Пример #1
0
        public void FinishPorachka(PorachkaFinishBindingModel model)
        {
            Porachka porachka = this.Context.Porachki.Find(model.Id);

            porachka.IsActive = model.IsActive;
            this.Context.SaveChanges();
        }
Пример #2
0
 public ActionResult FinishPorachka([Bind(Include = "Id,IsActive")] PorachkaFinishBindingModel model)
 {
     if (ModelState.IsValid)
     {
         this.service.FinishPorachka(model);
         return(this.RedirectToAction("Porachki"));
     }
     return(this.RedirectToAction("FinishPorachka"));
 }
 public void FinishPorachka(PorachkaFinishBindingModel model)
 {
     throw new NotImplementedException();
 }