Пример #1
0
 public MouldController(RepManagementContext context, IHttpContextAccessor httpContextAccessor, IMemoryCache cache)
 {
     _context             = context;
     _httpContextAccessor = httpContextAccessor;
     _cache = cache;
 }
Пример #2
0
 public UserController(RepManagementContext context, IHttpContextAccessor httpContextAccessor, IOptions <AppSettingsData> settings)
 {
     _context             = context;
     _httpContextAccessor = httpContextAccessor;
     _settings            = settings;
 }
Пример #3
0
 public static void AttachDeleteEntity(this RepManagementContext context, object entry, string userId)
 {
     context.Entry(entry).Property(ConstData.ShadowPropName_UpdatedBy).CurrentValue   = Guid.Parse(userId);
     context.Entry(entry).Property(ConstData.ShadowPropName_UpdatedDate).CurrentValue = DateTime.Now;
     context.Entry(entry).Property(ConstData.ShadowPropName_IsDeleted).CurrentValue   = true;
 }
Пример #4
0
 public VendorController(RepManagementContext context, IHttpContextAccessor httpContextAccessor)
 {
     _context             = context;
     _httpContextAccessor = httpContextAccessor;
 }