public ActionResult Special(decimal?id) { try { Order order = null; if (id.HasValue) { order = StudentInGroupService.GetOrder(id.Value); if (order == null) { return(Content("Заказ не найден")); } if (order.IsSigPaid) { return(Content("Статус заказа ({0}) ОПЛ ".FormatWith(order.OurOrgOrDefault))); } } if (order != null) { ViewData[Htmls.OfferUrlKey] = Offers()[order.OurOrgOrDefault]; } return(View(order)); } catch (Exception ex) { Logger.Exception(ex, User); return(BaseView(new PagePart("Оплата недоступна"))); } }
public ActionResult SpecialLink(decimal?id) { try { return(View(StudentInGroupService.GetOrder(id.Value))); } catch (Exception ex) { Logger.Exception(ex, User); return(Content("Оплата недоступна")); } }
public Entities.Context.Order GetByCommonId(string commonOrderId) { var id = Entities.Context.Order.GetIdFromCommon(commonOrderId); var order = id.Item1 ? GetByPK(id.Item2) : StudentInGroupService.GetOrder(id.Item2); return(order); }
public ActionResult SpecialOrg(decimal id) { return(Content(StudentInGroupService.GetOrder(id).OurOrg_TC)); }