Esempio n. 1
0
        // GET: Code/Details/5
        public ActionResult Details(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            Detail code = service.GetSpecificDetailToViewModel <Detail>(x => x.SN == id, x => x.CodeMain);

            if (code == null)
            {
                return(HttpNotFound());
            }
            return(View(code));
        }