public PurchaseCommandHandler(
     PTSDbContext context,
     INotificationService notificationService)
 {
     _context             = context;
     _notificationService = notificationService;
 }
 public GetSuppliersQueryHandler(
     PTSDbContext context,
     INotificationService notificationService)
 {
     _context             = context;
     _notificationService = notificationService;
 }
Пример #3
0
 public GetProductsByCategoryQueryHandler(
     PTSDbContext context,
     INotificationService notificationService)
 {
     _context             = context;
     _notificationService = notificationService;
 }
 public LoginCustomerQueryHandler(
     PTSDbContext context,
     INotificationService notificationService)
 {
     _context             = context;
     _notificationService = notificationService;
 }
Пример #5
0
 public GetCategoriesQueryHandler(
     PTSDbContext context,
     INotificationService notificationService)
 {
     _context             = context;
     _notificationService = notificationService;
 }
Пример #6
0
        static void Main(string[] args)
        {
            var admin = new Customer {
                CustomerId = 1,
                Username   = "******",
                Password   = Encypt.EncryptString("jed8703"),
                ExternalId = Guid.NewGuid()
            };

            using (var db = new PTSDbContext())
            {
                db.Remove(admin);
                db.SaveChanges();
            }
        }