Exemplo n.º 1
0
        public ProductGetResponse Get(ProductGetRequest request)
        {
            var response = new ProductGetResponse();

            _facade.Get(request.Id);
            return(response);
        }
Exemplo n.º 2
0
        public ActionResult Create(Guid productId)
        {
            var product = _productFacade.Get(productId);

            if (product != null)
            {
                var auction = new CreateAuctionViewModel()
                {
                    ProductId   = product.Id,
                    ProductName = product.Name,
                    Start       = DateTime.Now,
                    End         = DateTime.Now.AddDays(1)
                };
                return(View(auction));
            }
            return(RedirectToAction("Index", "Product"));
        }
Exemplo n.º 3
0
 public ActionResult <Product> GetProduct(Guid id)
 {
     return(Ok(_productFacade.Get(id)));
 }