Example #1
0
 public async Task <OperationDetails> CreateRealEstateStatusAsync(RealEstateStatusDTO realEstateStatusDto, OperationDetails MessageSuccess, OperationDetails MessageFail)
 {
     return((await service.CreateItemAsync(realEstateStatusDto,
                                           new RealEstateStatusEquelSpecification(realEstateStatusDto).ToExpression(),
                                           MessageSuccess,
                                           MessageFail)).Item1);
 }
Example #2
0
 public RealEstateViewDTO() : base()
 {
     RealEstate         = new RealEstateDTO();
     RealEstateClass    = new RealEstateClassDTO();
     RealEstateStatus   = new RealEstateStatusDTO();
     RealEstateType     = new RealEstateTypeDTO();
     RealEstateTypeWall = new RealEstateTypeWallDTO();
     AddressView        = new AddressViewDTO();
 }
Example #3
0
        public async Task <OperationDetails> UpdateRealEstateStatusAsync(RealEstateStatusDTO realEstateStatusDto, OperationDetails MessageSuccess, OperationDetails MessageFail)
        {
            int idStatusDto = realEstateStatusDto.RealEstateStatusID;

            return(await service.UpdateItemAsync(realEstateStatusDto,
                                                 idStatusDto,
                                                 MessageSuccess,
                                                 MessageFail));
        }
Example #4
0
 public async Task <OperationDetails> UpdateStatus(RealEstateStatusDTO StatusDto)
 {
     return(await realEstateStatusService.UpdateRealEstateStatusAsync(StatusDto,
                                                                      new RealEstateStatusMessageSpecification(StatusDto).ToSuccessUpdateMessage(),
                                                                      new RealEstateStatusMessageSpecification(StatusDto).ToFailUpdateMessage()));
 }
Example #5
0
 public RealEstateStatusMessageSpecification(RealEstateStatusDTO statusDto = null)
 {
     StatusDto = statusDto;
 }