public async Task <CardUpdateResultEnum> UpdateAsync(Card card) { _context.Entry(card).State = EntityState.Modified; return(await _context.SaveChangesAsync() > 0 ? CardUpdateResultEnum.Successful : CardUpdateResultEnum.DBUpdateFailed); }
public async Task <int> UpdateAsync(Visitor visitor) { _context.Entry(visitor).State = EntityState.Modified; return(await _context.SaveChangesAsync()); }