public async Task <int> AddPetAsync(Pet pet) { int rowsAffected = 0; _context.Pets.Add(pet); rowsAffected = await _context.SaveChangesAsync(); return(rowsAffected); }
public async Task <int> AddProductAsync(Product product) { int rowsAffected = 0; _context.Products.Add(product); rowsAffected = await _context.SaveChangesAsync(); return(rowsAffected); }