Пример #1
0
        public ActionResult Index(int id)
        {
            Seller         seller   = sellerRepo.GetByLogin(id);
            SellerApproval approval = approvalRepo.Get(seller.ApprovalId);

            if (approval.Status)
            {
                Session["SID"] = seller.SellerId;

                return(RedirectToAction("ViewProfile", "Seller", new { @id = seller.SellerId }));
            }

            else
            {
                return(View("Error"));
            }
        }