public AddressViewDTO()
 {
     Address       = new AddressDTO();
     AddressCity   = new AddressCityDTO();
     AddressRegion = new AddressRegionDTO();
     AddressStreet = new AddressStreetDTO();
 }
 public async Task <OperationDetails> CreateAddressCityAsync(AddressCityDTO addressCityDto, OperationDetails MessageSuccess, OperationDetails MessageFail)
 {
     return((await service.CreateItemAsync(addressCityDto,
                                           new AddressCityEquelSpecification(addressCityDto).ToExpression(),
                                           MessageSuccess,
                                           MessageFail)).Item1);
 }
        public async Task <OperationDetails> UpdateAddressCityAsync(AddressCityDTO addressCityDto, OperationDetails MessageSuccess, OperationDetails MessageFail)
        {
            int idCityDto = addressCityDto.AddressCityID;

            return(await service.UpdateItemAsync(addressCityDto,
                                                 idCityDto,
                                                 MessageSuccess,
                                                 MessageFail));
        }
Example #4
0
 public AddressCityMessageSpecification(AddressCityDTO cityDto = null)
 {
     CityDto = cityDto;
 }
 public async Task <OperationDetails> UpdateCity(AddressCityDTO CityDto)
 {
     return(await addressCityService.UpdateAddressCityAsync(CityDto,
                                                            new AddressCityMessageSpecification(CityDto).ToSuccessUpdateMessage(),
                                                            new AddressCityMessageSpecification(CityDto).ToFailUpdateMessage()));
 }