Exemple #1
0
        public ActionResult ApproveWish(int WishId)
        {
            var user = Session["userId"] ?? "";
            if (user.ToString() == "")
                return Redirect("~/Login/Index");

            IWishServers wishServers = new WishServers();
            wishServers.ApproveAWish((int)WishId);
            var wishlist = wishServers.GetLoverWishesList((int)user);

            return View("ReviewPage", GetWishList(wishlist));
        }
Exemple #2
0
 public ActionResult Wish()
 {
     var user = Session["userId"] ?? "";
     if (user.ToString() == "")
         return Redirect("~/Login/Index");
     IWishServers wishServers = new WishServers();
     var wishlist = wishServers.GetMyWishList((int)user);
     return View("WishPage", GetWishList(wishlist));
 }
Exemple #3
0
        public ActionResult MakeAWish(string wishTitle,string wishContext)
        {
            var user = Session["userId"] ?? "";
            if (user.ToString() == "")
                return Redirect("~/Login/Index");

            IWishServers wishServers=new WishServers();
            wishServers.MakeAWish((int) user, wishContext, wishTitle);

            return Redirect("~/Home/Wish");
        }