コード例 #1
0
        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())));
        }
コード例 #2
0
        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())));
        }
コード例 #3
0
 public LayoutController(
     IUserNavigationManager userNavigationManager,
     ILocalizationManager localizationManager,
     ISessionAppService sessionAppService,
     IMultiTenancyConfig multiTenancyConfig)
 {
     _userNavigationManager = userNavigationManager;
     _localizationManager   = localizationManager;
     _sessionAppService     = sessionAppService;
     _multiTenancyConfig    = multiTenancyConfig;
     provider = new DBProvider();
 }
コード例 #4
0
 public CalculateurController()
 {
     db = new DBProvider();
     GetPermissions();
 }
コード例 #5
0
 public UsersController()
 {
     //us = new UserStore();
     db = new DBProvider();
     GetPermissions();
 }
コード例 #6
0
 public HomeController()
 {
     db = new DBProvider();
     GetPermissions();
 }
コード例 #7
0
 public EventsController()
 {
     db = new DBProvider();
     GetPermissions();
 }
コード例 #8
0
 public ProfilController()
 {
     provider = new DBProvider();
     GetPermissions();
 }