public ActionResult Check(Guid id, string phone) { if (id == Guid.Empty) { return(Content("请求参数异常,预约id为空")); } if (string.IsNullOrWhiteSpace(phone)) { return(Content("请求异常,请验证手机号")); } var r = _reservertionBLL.Fetch(re => re.ReservationId == id); if (r.ReservationPersonPhone != phone.Trim()) { return(Content("请求异常,或者手机号输入有误")); } return(View(r)); }
/// <summary> /// Print /// </summary> /// <returns></returns> public ActionResult Check(Guid id, string phone) { if (id == Guid.Empty) { return(Content("请求参数异常,预约id为空")); } if (string.IsNullOrWhiteSpace(phone)) { return(Content("请求异常,请验证手机号")); } var r = _reservationBLL.Fetch(re => re.ReservationId == id); if (r.ReservationPersonPhone != phone.Trim()) { return(Content("请求异常,或者手机号输入有误")); } r.Place = HttpContext.RequestServices.GetService <IBLLReservationPlace>() .Fetch(p => p.PlaceId == r.ReservationPlaceId); return(View(r)); }