public ProductGetResponse Get(ProductGetRequest request) { var response = new ProductGetResponse(); _facade.Get(request.Id); return(response); }
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")); }
public ActionResult <Product> GetProduct(Guid id) { return(Ok(_productFacade.Get(id))); }