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