public async Task <OperationDetails> CreateRealEstateStatusAsync(RealEstateStatusDTO realEstateStatusDto, OperationDetails MessageSuccess, OperationDetails MessageFail) { return((await service.CreateItemAsync(realEstateStatusDto, new RealEstateStatusEquelSpecification(realEstateStatusDto).ToExpression(), MessageSuccess, MessageFail)).Item1); }
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> UpdateRealEstateStatusAsync(RealEstateStatusDTO realEstateStatusDto, OperationDetails MessageSuccess, OperationDetails MessageFail) { int idStatusDto = realEstateStatusDto.RealEstateStatusID; return(await service.UpdateItemAsync(realEstateStatusDto, idStatusDto, MessageSuccess, MessageFail)); }
public async Task <OperationDetails> UpdateStatus(RealEstateStatusDTO StatusDto) { return(await realEstateStatusService.UpdateRealEstateStatusAsync(StatusDto, new RealEstateStatusMessageSpecification(StatusDto).ToSuccessUpdateMessage(), new RealEstateStatusMessageSpecification(StatusDto).ToFailUpdateMessage())); }
public RealEstateStatusMessageSpecification(RealEstateStatusDTO statusDto = null) { StatusDto = statusDto; }