public IHttpActionResult GetAll() { MowerService mowerService = CreateMowerService(); var mowers = mowerService.GetMowers(); return(Ok(mowers)); }
public ActionResult Index() { var userId = Guid.Parse(User.Identity.GetUserId()); var service = new MowerService(userId); var model = service.GetMowers(); return(View(model)); }