Namelist
This commit is contained in:
14
Apollon.Domain/Commands/ICreateNameListCommand.cs
Normal file
14
Apollon.Domain/Commands/ICreateNameListCommand.cs
Normal file
@@ -0,0 +1,14 @@
|
||||
using Apollon.Domain.Models;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Apollon.Domain.Commands
|
||||
{
|
||||
public interface ICreateNameListCommand
|
||||
{
|
||||
Task Execute(NameList nameList);
|
||||
}
|
||||
}
|
||||
13
Apollon.Domain/Commands/IDeleteNameListCommand.cs
Normal file
13
Apollon.Domain/Commands/IDeleteNameListCommand.cs
Normal file
@@ -0,0 +1,13 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Apollon.Domain.Commands
|
||||
{
|
||||
public interface IDeleteNameListCommand
|
||||
{
|
||||
Task Execute(Guid id);
|
||||
}
|
||||
}
|
||||
14
Apollon.Domain/Commands/IUpdateNameListCommand.cs
Normal file
14
Apollon.Domain/Commands/IUpdateNameListCommand.cs
Normal file
@@ -0,0 +1,14 @@
|
||||
using Apollon.Domain.Models;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Apollon.Domain.Commands
|
||||
{
|
||||
public interface IUpdateNameListCommand
|
||||
{
|
||||
Task Exexute(NameList nameList);
|
||||
}
|
||||
}
|
||||
32
Apollon.Domain/Models/NameList.cs
Normal file
32
Apollon.Domain/Models/NameList.cs
Normal file
@@ -0,0 +1,32 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Apollon.Domain.Models
|
||||
{
|
||||
public class NameList
|
||||
{
|
||||
public NameList(Guid id,string firstName, string lastName, int passNumber, string society, int societyNumber, string birthday, string country)
|
||||
{
|
||||
Id = id;
|
||||
FirstName = firstName;
|
||||
LastName = lastName;
|
||||
PassNumber = passNumber;
|
||||
Society = society;
|
||||
SocietyNumber = societyNumber;
|
||||
Birthday = birthday;
|
||||
Country = country;
|
||||
}
|
||||
|
||||
public Guid Id { get; }
|
||||
public string FirstName { get; }
|
||||
public string LastName { get; }
|
||||
public int PassNumber { get; }
|
||||
public string Society { get; }
|
||||
public int SocietyNumber { get; }
|
||||
public string Birthday { get; }
|
||||
public string Country { get; }
|
||||
}
|
||||
}
|
||||
14
Apollon.Domain/Queries/IGetAllNamesQuery.cs
Normal file
14
Apollon.Domain/Queries/IGetAllNamesQuery.cs
Normal file
@@ -0,0 +1,14 @@
|
||||
using Apollon.Domain.Models;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Apollon.Domain.Queries
|
||||
{
|
||||
public interface IGetAllNamesQuery
|
||||
{
|
||||
Task<IEnumerable<NameList>> Execute();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user