public WhiteListRefer QueryWhitePageList(WhiteListRefer refer) { var req = refer.Search; var ret = new WhiteListRefer(); var response = BSClient.Send <QueryWhitePageListResponse>(new QueryWhitePageList { Mobile = req.Mobile == null ? null : req.Mobile.Trim(), UserName = req.UserName == null ? null : req.UserName.Trim(), IsEnable = req.IsEnable, PageIndex = refer.PageIndex, PageSize = refer.PageSize, }); ret.List = Mapper.MappGereric <WhiteListDto, WhiteListModel>(response.Dtos); ret.PageIndex = response.PageIndex; ret.PageSize = response.PageSize; ret.Total = response.Total; return(ret); }
public ActionResult WhiteListIndex(WhiteListRefer refer) { var result = ShortMessageClient.Instance.QueryWhitePageList(refer); return(View(result)); }