示例#1
0
 public void GetInformationListModel(InformationListModel model)
 {
     model.Items = InformationDao.LoadAllSorted().ToList().
         ConvertAll(x => new InformationModelDto
                             {
                                 Id = x.Id,
                                 Message = x.Message,
                                 Subject = x.Subject,
                             });
 }
示例#2
0
 public ActionResult InformationsList()
 {
     CheckUserRole(false);
     InformationListModel model = new InformationListModel();
     AdminBl.GetInformationListModel(model);
     return View(model);
 }