Ejemplo n.º 1
0
        public PropertyListing StatusUpdate(PropertyListing listing, bool status)
        {
            listing.IsActive = status;
            listing.Modified = DateTime.Now;

            return(this);
        }
Ejemplo n.º 2
0
        public PropertyListing Update(
            PropertyListing listing,
            string title,
            string listingDesc,
            ListingContact contact,
            decimal rent,
            bool isActive, // add to update the publishing status -- may refactor in the future
            string notes,
            DateTime updated)
        {
            Title       = title;
            ListingDesc = listingDesc;
            Contact     = contact;
            MonthlyRent = rent;
            Note        = notes;
            IsActive    = isActive; // add to update the publishing status -- may refactor in the future
            Modified    = updated;

            return(listing);
        }
Ejemplo n.º 3
0
 public void Publish(PropertyListing listing)
 {
     listing.IsActive = true;
     listing.Modified = DateTime.Now;
 }
Ejemplo n.º 4
0
 public void DeActivate(PropertyListing listing)
 {
     listing.IsActive = false;
     listing.Modified = DateTime.Now;
 }