48 lines
1.1 KiB
C#
48 lines
1.1 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using _0_Framework.Application;
|
|
using Company.Domain.ZoneAgg;
|
|
using CompanyManagment.App.Contracts.Zone;
|
|
|
|
namespace CompanyManagment.Application;
|
|
|
|
public class ZoneApplication: IZoneApplication
|
|
|
|
{
|
|
private readonly IZoneRepository _zoneRepository;
|
|
|
|
public ZoneApplication(IZoneRepository zoneRepository)
|
|
{
|
|
_zoneRepository = zoneRepository;
|
|
}
|
|
|
|
public OperationResult Create(CreateZone command)
|
|
{
|
|
throw new NotImplementedException();
|
|
}
|
|
|
|
public OperationResult Edit(EditZone command)
|
|
{
|
|
throw new NotImplementedException();
|
|
}
|
|
|
|
public List<ZoneViewModel> GetAllZones()
|
|
{
|
|
return _zoneRepository.GetAllZones();
|
|
}
|
|
|
|
public List<ZoneViewModel> GetZoneListByCityId(int cityId)
|
|
{
|
|
return _zoneRepository.GetZoneListByCityId(cityId);
|
|
}
|
|
|
|
public EditZone GetDetails(long id)
|
|
{
|
|
return _zoneRepository.GetDetails(id);
|
|
}
|
|
|
|
public List<ZoneViewModel> Search(ZoneSearchModel searchModel)
|
|
{
|
|
throw new NotImplementedException();
|
|
}
|
|
} |