Ejemplo n.º 1
0
 public ActionResult AddToBookmarks(LotInfo lotInfo)
 {
     var lotid = Convert.ToInt32(Request.Cookies["LotId"].Value);
     var message = new DataAccess().AddToBookmarks(lotid, HttpContext.User.Identity.Name);
     return RedirectToAction("Index", new { id = lotid, @errormsg = message });
 }
Ejemplo n.º 2
0
 public ActionResult RestoreLot(LotInfo lotInfo)
 {
     var lotid = Convert.ToInt32(Request.Cookies["LotId"].Value);
     var message = new DataAccess().RestoreLot(lotid);
     return RedirectToAction("Index", new { id = lotid, @errormsg=message });
 }