public async Task <string> PageGetSupplierInfo(string info) { PageSupplierQueryInfo pageSupplierQueryInfo = new PageSupplierQueryInfo(); if (!string.IsNullOrWhiteSpace(info)) { pageSupplierQueryInfo = JsonConvert.DeserializeObject <PageSupplierQueryInfo>(info); } SupplierDal dal = new SupplierDal(); var result = await dal.PageGetSupplierInfo(pageSupplierQueryInfo); if (result.ResultCode != 0) { return(JsonConvert.SerializeObject(new { status = "fail", message = result.ResultMsg, date = DateTime.Now.ToShortDateString() })); } return(JsonConvert.SerializeObject(new { status = "success", data = result.Data, date = DateTime.Now.ToShortDateString() })); }