GetManufacturerById() public method

public GetManufacturerById ( int id ) : ManufacturerBase
id int
return ManufacturerBase
Ejemplo n.º 1
0
        //
        // GET: /Manufacturers/Details/5
        public ActionResult Details(int id)
        {
            // Attempt to fetch the desired object
            var fetchedObject = m.GetManufacturerById(id);

            if (fetchedObject == null)
            {
                return(RedirectToAction("index"));
            }
            else
            {
                return(View(fetchedObject));
            }
        }