Ejemplo n.º 1
0
        public ActionResult Index(int id)
        {
            Buyer         buyer    = buyerRepo.GetByLogin(id);
            BuyerApproval approval = approvalRepo.Get(buyer.ApprovalId);

            if (approval.Status)
            {
                Session["BID"] = buyer.BuyerId;

                if (InitCart() == 1)
                {
                    return(RedirectToAction("Index", "Home"));
                }

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

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