public ActionResult BanComment(CommentInfo model)
 {
     new DataAccess().BanComment(model.ID);
     return RedirectToAction("Index", "Lot", new { id = model.LotID });
 }
        public ActionResult LeaveComment(CommentInfo model)
        {
            var id = Convert.ToInt32(Request.Cookies["LotId"].Value);
            var message = "";
            if (ModelState.IsValid)
            {
                message = new DataAccess().LeaveComment(id, HttpContext.User.Identity.Name, model.CommentText);
            }

            return RedirectToAction("Index", new { id = id, @errormsg = message });
        }