Ejemplo n.º 1
0
        public ActionResult <List <Toaster> > Get()
        {
            _toasterService.Get();
            var toaster = _toasterService.Get();

            EventHandler.HandleFrontEndRequest("kazoo");

            return(toaster);
        }
Ejemplo n.º 2
0
        // Attribute specifying to routing layer that GET is intended (http verb)
        public ActionResult <List <Toaster> > Get()
        // Action Result is a return type for controller actions
        // here wraps either the list of toaster or the ActionResult
        {
            _toasterService.Get();
            var toaster = _toasterService.Get();

            EventHandler.HandleFrontEndRequest("someString");
            // logging the request from the client to the log. Should probably
            // pass in toaster instead of "kazoo" but it isn't getting logged
            // anyway.

            return(toaster);
        }