Exemplo n.º 1
0
 public ActionResult Delete(CaseBasicDataViewModel model)
 {
     if (ModelState.IsValid)
     {
         CaseService.DeleteBasicData(model.CaseID);
         return(JavaScript("$(document).trigger('Case:DeleteSuccefull');"));
     }
     return(null);
 }
        public ActionResult Delete(SearchGridViewModel CaseModel)
        {

            DeleteStatus DC = caseService.DeleteBasicData(CaseModel.CaseID);
            if (DC == DeleteStatus.Deleted)
            {
                return RedirectTo (Url.Action("Search")).WithSuccessMessages(JIC.Base.Resources.Messages.OperationCompletedSuccessfully);

            }
            else
            {

                return RedirectTo(Url.Action("Search")).WithErrorMessages(JIC.Base.Resources.Messages.OperationNotCompleted);


            }


        }