protected async override Task OnInitializedAsync() { NewRoom = new CreateRoomRequest(); Carpet = await CarpetService.GetAllCarpetAsync(); Carpet = Carpet.OrderBy(c => c.Brand).ThenBy(c => c.Name).ToList(); }
public async Task Refresh() { Carpets = await CarpetService.GetAllCarpetAsync(); Carpets = Carpets.OrderBy(c => c.Brand).ThenBy(c => c.Name).ToList(); }
protected async override Task OnInitializedAsync() { Carpets = await CarpetService.GetAllCarpetAsync(); await Refresh(); }