Пример #1
0
 public ActionResult Edit(Donor donor)
 {
     if (ModelState.IsValid && _donorService.IsCodeValid(donor.DonorCode, donor.DonorID))
     {
         _donorService.EditDonor(donor);
         return(Json(new { success = true }));
     }
     return(PartialView(donor));
 }