Beispiel #1
0
 public BaseCRUDController(DataAccessContext context)
 {
     _context           = context;
     htmlRenderHelper   = new HtmlRenderHelper(_context);
     imageDataContext   = new DataContext <Image>(_context);
     fileUploadService  = new FileUploadService(_context, imageDataContext);
     dataContext        = new DataContext <T>(_context);
     commentDataContext = new DataContext <Comment>(_context);
     historyHtmlBuilder = new HistoryHtmlBuilder(_context);
 }
 public HomeController(DataAccessContext context)
 {
     _context = context;
     htmlRenderHelper = new HtmlRenderHelper(_context);
     dataContext = new DataContext<House>(_context);
     houseSettingsDataContext = new DataContext<HouseSettings>(_context);
     messageDataContext = new DataContext<Message>(_context);
     houseStatusDataContext = new DataContext<HouseStatus>(_context);
     historyHtmlBuilder = new HistoryHtmlBuilder(_context);
 }