Esempio n. 1
0
        public void ChangeStatus(Guid Id, CommercialStatus NewStatus)
        {
            var transaction = this.Find(Id);

            transaction.Status = NewStatus;
            this.SaveChanges();
        }
Esempio n. 2
0
        public Property(string propertyProId, string propertySoftwareId, CommercialStatus status,
                        Classification classification, Location location, Description description, FinancialDetails financial)
        {
            PropertyProId      = propertyProId;
            PropertySoftwareId = propertySoftwareId;

            CommercialStatus = status;
            Classification   = classification;
            Location         = location;
            Description      = description;
            FinancialDetails = financial;
        }
Esempio n. 3
0
        public override XElement ToXElement()
        {
            XElement el = new XElement("property",
                                       new XAttribute("propertyProId", PropertyProId),
                                       new XAttribute("propertySoftwareId", PropertySoftwareId),
                                       new XAttribute("commercialStatus", CommercialStatus.ToString()),
                                       Classification.ToXElement(),
                                       Location.ToXElement(),
                                       GeneralInformation != null ? GeneralInformation.ToXElement() : null,
                                       Description.ToXElement(),
                                       FinancialDetails.ToXElement(),
                                       OutdoorDescription != null ? OutdoorDescription.ToXElement() : null,
                                       IndoorDescription != null ? IndoorDescription.ToXElement() : null,
                                       Certificates != null ? Certificates.ToXElement() : null,
                                       Attachments != null ? Attachments.ToXElement() : null
                                       );

            return(el);
        }
Esempio n. 4
0
 public IQueryable <Sale> GetByStatus(CommercialStatus status)
 => this.Query
 .Where(t => t.Status == status)
 .Include(t => t.Profile);