public PropertyListing StatusUpdate(PropertyListing listing, bool status) { listing.IsActive = status; listing.Modified = DateTime.Now; return(this); }
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); }
public void Publish(PropertyListing listing) { listing.IsActive = true; listing.Modified = DateTime.Now; }
public void DeActivate(PropertyListing listing) { listing.IsActive = false; listing.Modified = DateTime.Now; }