public ResultModel LogicDelete(int id) { var entity = GetById(id); if (entity != null) { entity.IsDeleted = (int)IsDeleted.Deleted; dbContext.Update(entity); } return(ResultModel.Success()); }
public ResultModel Update(TEntity entity) { dbContext.Update(entity); return(ResultModel.Success()); }
public Result <TEntity> Update(TEntity entity) { dbContext.Update(entity); return(Result <TEntity> .Success()); }