public ActionResult AddTreatmentPercentage(TreatmentPercentageModelView model)
 {
     if (ModelState.IsValid)
     {
         _percentage.AddPercentage(model);
         return RedirectToAction("RatioManagement");
     }
     return View(model);
 }
 public ActionResult AddTreatmentPercentage(TreatmentPercentageModelView model)
 {
     if (ModelState.IsValid)
     {
         _treatmentPercentage.AddPercentage(model);
         return RedirectToAction("GetAllTreatmentPercentage");
     }
     return View(model);
 }
 public void AddPercentage(TreatmentPercentageModelView model)
 {
     using (var feedPerc = new TreatmentPercentageRepository())
     {
         var feed = new TreatmentPercentage
         {
             TreatmentPercentageId = model.TreatmentPercentageId,
             Percentage = model.Percentage + " %"
         };
         feedPerc.Insert(feed);
     }
 }