public List <MABPVM> ReadList(GridModel gmd, out int totalRow, ref string message) { MABPVMDA RPO = new MABPVMDA(imap_); if (RPO.ReadListPaged(gmd, out totalRow, ref exec)) { return(RPO.Result.Collection); } else { message = "Internal Server Error"; } return(null); }
public IActionResult GetList(DataTableAjaxPostModel dtpm) { GridModel gmd = FilterOption.BindToGridModel(dtpm, typeof(MABPVM)); List <MABPVM> ret = new List <MABPVM>(); MABPVMDA AbpDA = new MABPVMDA(IM); if (AbpDA.ReadListPaged(gmd, ref ExecRes)) { ret = AbpDA.Result.Collection; } else { ListMessage.Add(AbpDA.Result.Message); } return(DataTableRecord(dtpm, ret)); }