Пример #1
0
 public async Task <Tbl_Customer> UpdateCustomerAsync(int id, Tbl_Customer tbl_Customer)
 {
     _context.Update(tbl_Customer);
     try
     {
         await _context.SaveChangesAsync();
     }
     catch (DbUpdateConcurrencyException)
     {
         throw;
     }
     return(tbl_Customer);
 }
Пример #2
0
 public async Task <Tbl_Products> UpdateProductAsync(int id, Tbl_Products tbl_Products)
 {
     _context.Update(tbl_Products);
     try
     {
         await _context.SaveChangesAsync();
     }
     catch (DbUpdateConcurrencyException)
     {
         throw;
     }
     return(tbl_Products);
 }