public InventoryItemDetail GetInventoryItemDetails(Guid id) { var detailsDto = _readmodel.GetInventoryItemDetails(id); if (detailsDto == null) { throw new HttpResponseException(HttpStatusCode.NotFound); } else { return(new InventoryItemDetail(detailsDto.Id, detailsDto.Name, detailsDto.CurrentCount, detailsDto.Version)); } }
public ActionResult Details(Guid id) { ViewData.Model = _readmodel.GetInventoryItemDetails(id); return(View()); }
public IActionResult Details(Guid id) { var model = _readmodel.GetInventoryItemDetails(id); return(View(model)); }