public async Task <bool> SaveChanges() { return(await _context.SaveChangesAsync() >= 0); }
/// <summary> /// Saves context /// </summary> /// <param name="cancellationToken"></param> /// <returns>boolean</returns> public async Task <bool> SaveChanges(CancellationToken cancellationToken) { return(await _context.SaveChangesAsync(cancellationToken).ConfigureAwait(false) >= 0); }