Exemplo n.º 1
0
        public async Task <NPOType> CreateNPOType(NPOType type)
        {
            _dbContext.Add(type);
            await _dbContext.SaveChangesAsync();

            return(type);
        }
Exemplo n.º 2
0
 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);
 }