Пример #1
0
 // GET: Payment
 public ActionResult Index()
 {
     if (Session["auth_info"] != null)
     {
         ViewBag.idSelected = "payments";
         try
         {
             var authInfo = (AuthInfo)Session["auth_info"];
             var data     = _priceService.GetBankAccount(authInfo.CurrentSelectedClinic.ClinicId);
             return(View(data));
         }
         catch (ApiException ex)
         {
             TempData[GlobalConstant.ErrorTemp] = ex.Message;
             return(View());
         }
     }
     else
     {
         TempData[GlobalConstant.ErrorTemp] = GlobalConstant.SessionExpiredOrNotLogin;
         return(RedirectToAction("Index", "Home"));
     }
 }