public IEnumerable <MaintainDto> ListDto(MaintainSearchParam param = null, string cols = "*") { if (param == null) { param = new MaintainSearchParam(); } var util = param.ToSearchUtil(); return(db.Fetch <MaintainDto>(util, "Asset_Maintain", cols)); }
public PageList <MaintainDto> PageListDto(MaintainSearchParam param = null, int pageIndex = 1, int pageSize = 20, string cols = "*") { if (param == null) { param = new MaintainSearchParam(); } var util = param.ToSearchUtil(); return(db.Query <MaintainDto>(util, pageIndex, pageSize, "Asset_Maintain", cols)); }