public JsonResult RemovePartAndLocation(TestMasterMappingViewModel testMasterMappingViewModel) { TestMasterMapping objTestMasterMapping = null; objTestMasterMapping = Mapper.Map <TestMasterMappingViewModel, TestMasterMapping>(testMasterMappingViewModel); testMasterMappingService.RemovePartAndLocationMapping(objTestMasterMapping); iUnitOfWork.Commit(); var data = new { status = true, testMasterId = testMasterMappingViewModel.TestMasterID, msg = "Location and Part mapping removed !" }; return(Json(data, JsonRequestBehavior.AllowGet)); }
public IHttpActionResult RemovePartAndLocation(TestMasterMappingViewModel testMasterMappingViewModel) { itestMasterMappingService.RemovePartAndLocationMapping(testMasterMappingViewModel); itestMasterMappingService.SaveTest(); return(Ok()); }