public async Task <Person> CreateAsync(Person model) { await _db.AddAsync(model); await _db.SaveChangesAsync(); return(model); }
public async Task <Account> CreateAsync(Account model) { model.CreatedAt = DateTime.UtcNow; model.IsDeleted = false; await _db.AddAsync(model); await _db.SaveChangesAsync(); return(model); }