예제 #1
0
        public ActionResult Claim(int id)
        {
            string valid = isValid(id);
            if (valid == null)
            {
                return RedirectToAction("Home", "Account");
            }
            claim claimInfo = new claim();

            claimInfo = _DAOFactory.ClaimDAO.getByEstId(id);
            return View(claimInfo);
        }
예제 #2
0
 public ActionResult Claim(claim claimInfo, int id)
 {
     string valid = isValid(id);
     if (valid == null)
     {
         return RedirectToAction("Home", "Account");
     }
     if (valid == Permissions.Editor.ToString() || valid == Permissions.Owner.ToString() || valid == Permissions.Admin.ToString())
     {
         claimInfo.estid = id;
         _AddUpdate.addUpdateClaim(claimInfo);
         return RedirectToAction("Vehicle", new { id = id });
     }
     return View(claimInfo);
 }