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); }
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); }