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