Exemple #1
0
 public Models.Task AddTask(Models.Task task)
 {
     _databaseContext.Tasks.Add(task);
     _databaseContext.SaveChanges();
     return(task);
 }
 public Permission AddPermission(Permission permission)
 {
     _databaseContext.Permissions.Add(permission);
     _databaseContext.SaveChanges();
     return(permission);
 }
 public Product AddProduct(Product product)
 {
     _databaseContext.Products.Add(product);
     _databaseContext.SaveChanges();
     return(product);
 }
 public Employee AddEmployee(Employee employee)
 {
     _databaseContext.Employees.Add(employee);
     _databaseContext.SaveChanges();
     return(employee);
 }
 public Role AddRole(Role role)
 {
     _databaseContext.Roles.Add(role);
     _databaseContext.SaveChanges();
     return(role);
 }
 public Wine AddWine(Wine wine)
 {
     _databaseContext.Wines.Add(wine);
     _databaseContext.SaveChanges();
     return(wine);
 }
Exemple #7
0
 public Step AddStep(Step step)
 {
     _databaseContext.Steps.Add(step);
     _databaseContext.SaveChanges();
     return(step);
 }
 public StockProduct AddStockProduct(StockProduct stockProduct)
 {
     _databaseContext.StockProducts.Add(stockProduct);
     _databaseContext.SaveChanges();
     return(stockProduct);
 }
 public Stock AddStock(Stock stock)
 {
     _databaseContext.Stocks.Add(stock);
     _databaseContext.SaveChanges();
     return(stock);
 }
Exemple #10
0
 public Category AddCategory(Category category)
 {
     _databaseContext.Categories.Add(category);
     _databaseContext.SaveChanges();
     return(category);
 }
 public StockWine AddStockWine(StockWine stockWine)
 {
     _databaseContext.StockWines.Add(stockWine);
     _databaseContext.SaveChanges();
     return(stockWine);
 }