public JsonResult IsValidFuPostBagNumber(string fuPostNumber) { JsonResultModel re = new JsonResultModel(); var result = _fubService.IsValidFuPostBagNumber(fuPostNumber); if (result.Status) { re.Status = 5; } else { re.Status = 1; re.Message = result.Message; } return(Json(re, JsonRequestBehavior.AllowGet)); }
public JsonResult MainPostNumberSave(string fuPostNumber, string mainPostNumber) { JsonResultModel re = new JsonResultModel(); if (string.IsNullOrWhiteSpace(fuPostNumber) || string.IsNullOrWhiteSpace(mainPostNumber)) { re.Status = 1; re.Message = "[福邮袋牌]或者[总包号]都不能为空."; } else { var resultInfo = _fubService.MainPostNumberSave(fuPostNumber, mainPostNumber); if (resultInfo.Status) { re.Status = 5; } else { re.Status = 1; re.Message = resultInfo.Message; } } return(Json(re, JsonRequestBehavior.AllowGet)); }