public async Task <OperationDetails> CreateRealEstateTypeAsync(RealEstateTypeDTO realEstateTypeDto, OperationDetails MessageSuccess, OperationDetails MessageFail)
 {
     return((await service.CreateItemAsync(realEstateTypeDto,
                                           new RealEstateTypeEquelSpecification(realEstateTypeDto).ToExpression(),
                                           MessageSuccess,
                                           MessageFail)).Item1);
 }
Ejemplo n.º 2
0
 public RealEstateViewDTO() : base()
 {
     RealEstate         = new RealEstateDTO();
     RealEstateClass    = new RealEstateClassDTO();
     RealEstateStatus   = new RealEstateStatusDTO();
     RealEstateType     = new RealEstateTypeDTO();
     RealEstateTypeWall = new RealEstateTypeWallDTO();
     AddressView        = new AddressViewDTO();
 }
        public async Task <OperationDetails> UpdateRealEstateTypeAsync(RealEstateTypeDTO realEstateTypeDto, OperationDetails MessageSuccess, OperationDetails MessageFail)
        {
            int idTypeDto = realEstateTypeDto.RealEstateTypeID;

            return(await service.UpdateItemAsync(realEstateTypeDto,
                                                 idTypeDto,
                                                 MessageSuccess,
                                                 MessageFail));
        }
Ejemplo n.º 4
0
 public async Task <OperationDetails> UpdateType(RealEstateTypeDTO TypeDto)
 {
     return(await realEstateTypeService.UpdateRealEstateTypeAsync(TypeDto,
                                                                  new RealEstateTypeMessageSpecification(TypeDto).ToSuccessUpdateMessage(),
                                                                  new RealEstateTypeMessageSpecification(TypeDto).ToFailUpdateMessage()));
 }
 public RealEstateTypeMessageSpecification(RealEstateTypeDTO typeDto = null)
 {
     TypeDto = typeDto;
 }