public async Task <OperationDetails> CreateRealEstateTypeWallAsync(RealEstateTypeWallDTO realEstateTypeWallDto, OperationDetails MessageSuccess, OperationDetails MessageFail)
 {
     return((await service.CreateItemAsync(realEstateTypeWallDto,
                                           new RealEstateTypeWallEquelSpecification(realEstateTypeWallDto).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();
 }
        public async Task <OperationDetails> UpdateRealEstateTypeWallAsync(RealEstateTypeWallDTO realEstateTypeWallDto, OperationDetails MessageSuccess, OperationDetails MessageFail)
        {
            int idTypeWallDto = realEstateTypeWallDto.RealEstateTypeWallID;

            return(await service.UpdateItemAsync(realEstateTypeWallDto,
                                                 idTypeWallDto,
                                                 MessageSuccess,
                                                 MessageFail));
        }
Example #4
0
 public async Task <OperationDetails> UpdateTypeWall(RealEstateTypeWallDTO TypeWallDto)
 {
     return(await realEstateTypeWallService.UpdateRealEstateTypeWallAsync(TypeWallDto,
                                                                          new RealEstateTypeWallMessageSpecification(TypeWallDto).ToSuccessUpdateMessage(),
                                                                          new RealEstateTypeWallMessageSpecification(TypeWallDto).ToFailUpdateMessage()));
 }
 public RealEstateTypeWallMessageSpecification(RealEstateTypeWallDTO typeWallDto = null)
 {
     TypeWallDto = typeWallDto;
 }