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)); }
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)); }
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"); }