public MouldController(RepManagementContext context, IHttpContextAccessor httpContextAccessor, IMemoryCache cache) { _context = context; _httpContextAccessor = httpContextAccessor; _cache = cache; }
public UserController(RepManagementContext context, IHttpContextAccessor httpContextAccessor, IOptions <AppSettingsData> settings) { _context = context; _httpContextAccessor = httpContextAccessor; _settings = settings; }
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; }
public VendorController(RepManagementContext context, IHttpContextAccessor httpContextAccessor) { _context = context; _httpContextAccessor = httpContextAccessor; }