public PurchaseCommandHandler( PTSDbContext context, INotificationService notificationService) { _context = context; _notificationService = notificationService; }
public GetSuppliersQueryHandler( PTSDbContext context, INotificationService notificationService) { _context = context; _notificationService = notificationService; }
public GetProductsByCategoryQueryHandler( PTSDbContext context, INotificationService notificationService) { _context = context; _notificationService = notificationService; }
public LoginCustomerQueryHandler( PTSDbContext context, INotificationService notificationService) { _context = context; _notificationService = notificationService; }
public GetCategoriesQueryHandler( PTSDbContext context, INotificationService notificationService) { _context = context; _notificationService = notificationService; }
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(); } }