Ejemplo n.º 1
0
        public virtual async Task <bool> Update(TEntity entity)
        {
            try
            {
                _dbContext.Update(entity);
                var result = await _dbContext.SaveChangesAsync();

                return(result > 0);
            }
            catch (Exception e)
            {
                return(false);
            }
        }