CustomerGetById() 공개 메소드

public CustomerGetById ( int id ) : CustomerBase
id int
리턴 CustomerBase
예제 #1
0
        // GET: Customers/Details/5
        public ActionResult Details(int?id)
        {
            var o = m.CustomerGetById(id.GetValueOrDefault());

            if (o == null)
            {
                return(HttpNotFound());
            }
            else
            {
                return(View(o));
            }
        }
예제 #2
0
        // GET: Customers/Details/5
        public ActionResult Details(int?id)
        {
            // Attempt to get the matching object
            var o = m.CustomerGetById(id.GetValueOrDefault());

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