* Added Logo to the output file
This commit is contained in:
@@ -5,4 +5,5 @@ namespace SytelineSaAppEfDataModel.Services;
|
||||
public interface IWzClientService
|
||||
{
|
||||
Task<IEnumerable<WzClientDto>> GetAll();
|
||||
Task<WzClientDto?> GetById(Guid id);
|
||||
}
|
||||
@@ -10,4 +10,10 @@ public class WzClientService(SytelineSaAppDbContext context, IMapper mapper) : I
|
||||
{
|
||||
return await context.WzClients.Select(x => mapper.Map<WzClientDto>(x)).ToListAsync();
|
||||
}
|
||||
|
||||
public async Task<WzClientDto?> GetById(Guid id)
|
||||
{
|
||||
var entity = await context.WzClients.FirstOrDefaultAsync(x => x.ID == id);
|
||||
return entity == null ? null : mapper.Map<WzClientDto>(entity);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user