public async Task <string> UpdateSupplierInfo(string info) { SupplierInfo supplierInfo = JsonConvert.DeserializeObject <SupplierInfo>(info); SupplierDal dal = new SupplierDal(); var result = await dal.UpdateSupplierInfo(supplierInfo); 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() })); }