Initial commit
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
using System.Collections.Generic;
|
||||
using WebApplication.Modules;
|
||||
|
||||
namespace WebApplication.Repositorys.Interfaces {
|
||||
public interface ICustomerRepository {
|
||||
Customer AddCustomer(CustomerEditor editor);
|
||||
void RemoveCustomer(string id);
|
||||
void EditCustomer(string id, CustomerEditor editor);
|
||||
Customer GetCustomer(string id);
|
||||
IEnumerable<Customer> GetCustomers();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
using WebApplication.Modules;
|
||||
|
||||
namespace WebApplication.Repositorys.Interfaces {
|
||||
public interface ISessionRepository {
|
||||
Session CreateSession(string customer);
|
||||
void RemoveSession(Session session);
|
||||
Session GetSession(string id);
|
||||
bool ValidateSession(Session session, string customerToAccess);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user