Exemplo n.º 1
0
 public DataEntryController(WTContext context, UserManager <User, int> userManager, IUserService userService, IReportService reportService, IFileStorage storage, IAWSS3 s3Storage)
     : base(context)
 {
     this.userManager = userManager;
     _storage         = storage;
     _userService     = userService;
     _reportService   = reportService;
     _s3Storage       = s3Storage;
 }
        public ReportService(WTContext context, IFileStorage storage, IAWSS3 s3Storage)
        {
            Context = context;
            string storageType = ConfigurationManager.AppSettings["StorageType"].ToUpper();

            if (storageType == Constants.StorageType_AWSS3)
            {
                _AWSS3Storage = s3Storage;
            }
            else
            {
                _storage = storage;
            }
        }