Add chapter 4 completed solution

This commit is contained in:
Alvin Ashcraft
2023-06-03 13:59:12 -04:00
parent e512a9926c
commit edbc96830c
30 changed files with 1077 additions and 0 deletions
@@ -0,0 +1,19 @@
using MyMediaCollection.Enums;
using MyMediaCollection.Model;
using System.Collections.Generic;
namespace MyMediaCollection.Interfaces
{
public interface IDataService
{
IList<MediaItem> GetItems();
MediaItem GetItem(int id);
int AddItem(MediaItem item);
void UpdateItem(MediaItem item);
IList<ItemType> GetItemTypes();
Medium GetMedium(string name);
IList<Medium> GetMediums();
IList<Medium> GetMediums(ItemType itemType);
IList<LocationType> GetLocationTypes();
}
}
@@ -0,0 +1,12 @@
using System;
namespace MyMediaCollection.Interfaces
{
public interface INavigationService
{
string CurrentPage { get; }
void NavigateTo(string page);
void NavigateTo(string page, object parameter);
void GoBack();
}
}