public bool Delete(Asset form) { if (string.IsNullOrEmpty(form.ID)) throw new Exception("删除失败,没有房产ID"); AssetQueryForm deleteform = new AssetQueryForm { ID = form.ID, }; return bll.Delete(deleteform); }
public PagingEntity<Asset> Query(AssetQueryForm form) { List<string> useridList = Common.GetDataAuthorityUserIDList(); form.Creators = useridList; var list = bll.Query(form); PagingEntity<Asset> assets = new PagingEntity<Asset> { Record = list, PageCount = form.PageCount, RecordCount = form.RecordCount, }; return assets; }
public List<Asset> Query(AssetQueryForm form) { AssetDao dao = new AssetDao(); form.IsDeleted = 0; return dao.Query(form); }
public bool Delete(AssetQueryForm form) { AssetDao dao = new AssetDao(); return dao.Delete(form); }