public Result LogicDelete(int userId)
        {
            var entity = GetByUserId(userId);

            if (entity != null)
            {
                entity.IsDeleted = (int)IsDeleted.Deleted;
                dbContext.Update(entity);
            }
            return(Result.Success());
        }
 public Result Update(TEntity entity)
 {
     dbContext.Update(entity);
     return(Result.Success());
 }