public async Task <bool> AddAsync(Core.Entities.RentACar rentACar) { var r = await context.FindAsync <Core.Entities.RentACar>(rentACar.Id); if (r is object) { return(false); } await context.AddAsync(rentACar); await context.SaveChangesAsync(); return(true); }
public async Task UpdateAsync(Core.Entities.RentACar rentACar) { context.Update(rentACar); await context.SaveChangesAsync(); }