public FileContentResult GetFile(int id) { var imagedata = db.ReturnUtilisateur(id).ImageProfil; var contentType = DBProvider.GetContentType(imagedata); return(new FileContentResult(imagedata, string.Format("image/{0}", contentType.ToString().ToLower()))); }
public FileContentResult GetFile(int id) { var imagedata = db.ReturnEvenement(id).affiche; var contentType = DBProvider.GetContentType(imagedata); return(new FileContentResult(imagedata, string.Format("image/{0}", contentType.ToString().ToLower()))); }
public LayoutController( IUserNavigationManager userNavigationManager, ILocalizationManager localizationManager, ISessionAppService sessionAppService, IMultiTenancyConfig multiTenancyConfig) { _userNavigationManager = userNavigationManager; _localizationManager = localizationManager; _sessionAppService = sessionAppService; _multiTenancyConfig = multiTenancyConfig; provider = new DBProvider(); }
public CalculateurController() { db = new DBProvider(); GetPermissions(); }
public UsersController() { //us = new UserStore(); db = new DBProvider(); GetPermissions(); }
public HomeController() { db = new DBProvider(); GetPermissions(); }
public EventsController() { db = new DBProvider(); GetPermissions(); }
public ProfilController() { provider = new DBProvider(); GetPermissions(); }