public ResultModel LogicDelete(int id)
        {
            var entity = GetById(id);

            if (entity != null)
            {
                entity.IsDeleted = (int)IsDeleted.Deleted;
                dbContext.Update(entity);
            }
            return(ResultModel.Success());
        }
コード例 #2
0
 public ResultModel Update(TEntity entity)
 {
     dbContext.Update(entity);
     return(ResultModel.Success());
 }
コード例 #3
0
 public Result <TEntity> Update(TEntity entity)
 {
     dbContext.Update(entity);
     return(Result <TEntity> .Success());
 }