コード例 #1
0
        // GET: Marcas/Details/5
        public ActionResult Details(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            Marcas marca = marcaService.FindById(id);

            if (marca == null)
            {
                return(HttpNotFound());
            }
            return(View(marca));
        }
コード例 #2
0
        public ActionResult Edit(int?id)
        {
            var marca = _marcaService.FindById(id.Value);

            return(View(marca));
        }