Ejemplo n.º 1
0
 public ActionResult Delete(NotCompleteCaseViewModels NotCompleteCase)
 {
     try
     {
         if (NotCompleteCasesService.DeleteNotCompleteCase(NotCompleteCase.CaseId))
         {
             return(RedirectJS(Url.Action("Index")).WithSuccessMessages(JIC.Base.Resources.Messages.OperationCompletedSuccessfully));
         }
         else
         {
             return(CPartialView(NotCompleteCase).WithErrorMessages(JIC.Base.Resources.Messages.OperationNotCompleted));
         }
     }
     catch (Exception ex)
     {
         return(ErrorPage(ex));
     }
 }
Ejemplo n.º 2
0
 public ActionResult Delete(int id)
 {
     try
     {
         var unCompletCase = CaseService.GetCaseBasicData(id);
         NotCompleteCaseViewModels NotCompleteCaseView = new NotCompleteCaseViewModels()
         {
             CaseId       = unCompletCase.CaseID,
             CaseTitle    = unCompletCase.CaseName,
             CrimName     = unCompletCase.CrimeTypeName,
             FirstNumber  = unCompletCase.FirstNumberInt + " / " + unCompletCase.FirstYearInt + " / " + unCompletCase.FirstprosecutionName,
             SecondNumber = unCompletCase.SecondNumberInt + " / " + unCompletCase.SecondYearInt + " / " + unCompletCase.SecoundProsecutionName,
         };
         return(PartialView(NotCompleteCaseView));
     }
     catch (Exception ex)
     {
         return(ErrorPage(ex));
     }
 }