Example #1
0
 public ActionResult DocumentSubTypeList(DocumentSubtypeListModel model)
 {
     CheckUserRole(false);
     AdminBl.SetModel(model);
     return View(model);
 }
Example #2
0
 public void SetModel(DocumentSubtypeListModel model)
 {
     model.DocumentTypes = EmployeeDocumentTypeDao.LoadAllSorted().ToList().
         ConvertAll(x => new IdNameDto(x.Id, x.Name));
     model.Subtypes = EmployeeDocumentTypeDao.LoadSubtypeForType(model.DocumentTypeId)
         .ToList().ConvertAll(x => new IdNameDto(x.Id, x.Name));
 }
Example #3
0
 public ActionResult DocumentSubTypeList(int typeId)
 {
     CheckUserRole(false);
     DocumentSubtypeListModel model = new DocumentSubtypeListModel {DocumentTypeId = typeId};
     AdminBl.SetModel(model);
     return View(model);
 }