示例#1
0
        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));
        }
示例#2
0
 public IHttpActionResult RemovePartAndLocation(TestMasterMappingViewModel testMasterMappingViewModel)
 {
     itestMasterMappingService.RemovePartAndLocationMapping(testMasterMappingViewModel);
     itestMasterMappingService.SaveTest();
     return(Ok());
 }