public async Task <NPOType> CreateNPOType(NPOType type) { _dbContext.Add(type); await _dbContext.SaveChangesAsync(); return(type); }
public async Task <bool> UpdateNPOType(NPOType type) { _dbContext.Entry(type).Property(x => x.Name).IsModified = true; _dbContext.Entry(type).Property(x => x.TaxCodeIdentifier).IsModified = true; return(await _dbContext.SaveChangesAsync() > 0 ? true : false); }