AssocOneToMany.Controllers.TeamsController.Details C# (CSharp) Метод

Details() публичный Метод

public Details ( int id ) : System.Web.Mvc.ActionResult
id int
Результат System.Web.Mvc.ActionResult
        public ActionResult Details(int? id)
        {
            // Attempt to get the matching object
            var o = m.TeamGetById(id.GetValueOrDefault());

            if (o == null)
            {
                return HttpNotFound();
            }
            else
            {
                // Pass the object to the view
                return View(o);
            }
        }