public async Task <IActionResult> Get(string lawnId, string productApplicationId)
        {
            try {
                var application = await _productApplicationService.GetAsync(lawnId, productApplicationId);

                var dto = new ProductApplication(application);
                return(Ok(dto));
            }
            catch (ProductApplicationNotFoundException)
            {
                return(NotFound());
            }
        }
Esempio n. 2
0
 public async Task <ProductGetResponseModel> Get(Guid id)
 {
     return(await _productService.GetAsync(id));
 }