public void SaveAssistanceProgram(AssistanceProgramViewModel apvm)
 {
     using (SlpContext context = new SlpContext())
     {
         SlpApplication dbApp = context.SlpApplication.Find(apvm.AppId);
         dbApp.AssistanceProgramId = apvm.Id; // apvm.Id == null || apvm.Id ==  ? null : apvm.Id;
         dbApp.AssistanceProgramCaseNumber = apvm.Id == null || apvm.Id == (int)AssistanceProgramsEnum.None  ? "" : apvm.CaseNumber;
         context.SaveChanges();
     }
 }
Exemplo n.º 2
0
 public JsonResult SaveAssistanceProgram(AssistanceProgramViewModel apvm)
 {
     appOrchestrator.SaveAssistanceProgram(apvm);
     return Json(_success, JsonRequestBehavior.AllowGet);
 }