Files
DaSaSo/DaSaSo.Domain/Services/ClientServices/ClientService.cs
2021-09-13 15:37:23 +02:00

38 lines
1.0 KiB
C#

using DaSaSo.Domain.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DaSaSo.Domain.Services.ClientServices
{
public class ClientService : IClientService
{
private readonly IDataService<Client> _clientService;
public async Task<bool> CreateNewClient(string firstname, string lastname, string street, string country, string postcode)
{
Client client = new Client()
{
Firstname = firstname,
LastName = lastname,
Country = country,
Postcode = postcode,
Street = street
};
await _clientService.Create(client);
return true;
}
public Task<Client> GetClientById(int id)
{
throw new NotImplementedException();
}
public async Task<Client> ListAllClient()
{
throw new NotImplementedException();
}
}
}