Exemplo n.º 1
0
 public void getAllList()
 {
     ViewBag.classificationList = classificationService.GetQueryable(c => c.IsDeleted == false).GetListItems("ClassificationName", "Id", 0).ToList();
     ViewBag.mailTypeList       = mailTypeService.GetQueryable(c => c.IsDeleted == false).GetListItems("MailName", "Id", 0).ToList();
     ViewBag.postTypeList       = postTypeService.GetQueryable(c => c.IsDeleted == false).GetListItems("PostName", "Id", 0).ToList();
     ViewBag.securityList       = securityService.GetQueryable(c => c.IsDeleted == false).GetListItems("SecurityName", "Id", 0).ToList();
     ViewBag.statusList         = statusService.GetQueryable(c => c.IsDeleted == false).GetListItems("StatusName", "Id", 0).ToList();
 }
Exemplo n.º 2
0
 public IActionResult saveClassification(int id)
 {
     if (id == 0)
     {
         if (ModelState.IsValid)
         {
             return(PartialView("_addClassification"));
         }
     }
     else
     {
         if (ModelState.IsValid)
         {
             var obj = classification.GetQueryable(c => c.Id == id).FirstOrDefault();
             return(PartialView("_addClassification", obj));
         }
     }
     return(View());
 }