38 lines
1.0 KiB
C#
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();
|
|
}
|
|
}
|
|
}
|