Beispiel #1
0
        public ProductGetResponse Get(ProductGetRequest request)
        {
            var response = new ProductGetResponse();

            _facade.Get(request.Id);
            return(response);
        }
Beispiel #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"));
        }
Beispiel #3
0
 public ActionResult <Product> GetProduct(Guid id)
 {
     return(Ok(_productFacade.Get(id)));
 }