예제 #1
0
        public PropertyListing StatusUpdate(PropertyListing listing, bool status)
        {
            listing.IsActive = status;
            listing.Modified = DateTime.Now;

            return(this);
        }
예제 #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);
        }
예제 #3
0
 public void Publish(PropertyListing listing)
 {
     listing.IsActive = true;
     listing.Modified = DateTime.Now;
 }
예제 #4
0
 public void DeActivate(PropertyListing listing)
 {
     listing.IsActive = false;
     listing.Modified = DateTime.Now;
 }