private BookInventoryService CreateInventoryService() { var userID = Guid.Parse(User.Identity.GetUserId()); var services = new BookInventoryService(userID); return(services); }
// GET: BookInventory public ActionResult Index() { BookInventoryService service = CreateBookInventoryService(); var model = service.GetBooks(); return(View(model)); }