Exemplo n.º 1
0
        // GET: Parts/Details/5
        public ActionResult Details(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            Part Part = db.Parts.Find(id);

            if (Part == null)
            {
                return(HttpNotFound());
            }
            Membership.AddRecentPartToUser(User.Identity.GetUserName(), Part.Id);
            return(View(Part));
        }