-
-
Save dcomartin/03677119a630df0abbbb8833d7ef44b1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class ReadModelFacade : IReadModelFacade | |
{ | |
public IEnumerable<InventoryItemListDto> GetInventoryItems() | |
{ | |
return FakeDatabase.list; | |
} | |
public InventoryItemDetailsDto GetInventoryItemDetails(Guid id) | |
{ | |
return FakeDatabase.details[id]; | |
} | |
} | |
public class Details : PageModel | |
{ | |
public InventoryItemDetailsDto InventoryItem { get; set; } | |
public void OnGet(string id) | |
{ | |
InventoryItem = new ReadModelFacade().GetInventoryItemDetails(Guid.Parse(id)); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment