Esempio n. 1
0
        public IHttpActionResult GetAll()
        {
            MowerService mowerService = CreateMowerService();
            var          mowers       = mowerService.GetMowers();

            return(Ok(mowers));
        }
Esempio n. 2
0
        public ActionResult Index()
        {
            var userId  = Guid.Parse(User.Identity.GetUserId());
            var service = new MowerService(userId);
            var model   = service.GetMowers();

            return(View(model));
        }