예제 #1
0
        public IHttpActionResult GetAll()
        {
            MowerService mowerService = CreateMowerService();
            var          mowers       = mowerService.GetMowers();

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

            return(View(model));
        }