public ActionResult UpdateKendoGrid(string models) { IList <RequiredTest> objName = new JavaScriptSerializer().Deserialize <IList <RequiredTest> >(models); TestSubcategory tsc = new TestSubcategory(); tsc.Id = objName[0].Id; tsc.TestSubcategoryName = objName[0].testName; tsc.UpperBound = objName[0].upperBound; tsc.LowerBound = objName[0].lowerBound; tsc.Unit = objName[0].unit; tsc.Rate = objName[0].rate; tsc.TestCategoryId = TestSubCategoryServices.getById(tsc.Id).TestCategoryId; TestSubCategoryServices.Update(tsc, tsc.Id); return(Json(tsc)); }
public void Update(TestSubcategory TestCatg, int id) { _TestSubCatgeroryRepository.Update(TestCatg, id); }
public void Add(TestSubcategory TestCatg) { _TestSubCatgeroryRepository.Insert(TestCatg); }