Exemplo n.º 1
0
        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("Оплата недоступна")));
            }
        }
Exemplo n.º 2
0
 public ActionResult SpecialLink(decimal?id)
 {
     try {
         return(View(StudentInGroupService.GetOrder(id.Value)));
     } catch (Exception ex) {
         Logger.Exception(ex, User);
         return(Content("Оплата недоступна"));
     }
 }
Exemplo n.º 3
0
        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);
        }
Exemplo n.º 4
0
 public ActionResult SpecialOrg(decimal id)
 {
     return(Content(StudentInGroupService.GetOrder(id).OurOrg_TC));
 }