public ActionResult Edit(int id, Inquiry inquiry) { if(ModelState.IsValid) { repository.Save(inquiry); repository.Save(inquiry.Source); repository.Save(inquiry.Client); repository.Save(inquiry.Source.Sender); return View("Details", inquiry); } return View(inquiry); }
public bool Equals(Inquiry other) { if (ReferenceEquals(null, other)) return false; if (ReferenceEquals(this, other)) return true; return other.Status == Status && other.Id == Id && Equals(other.Client, Client) && Equals(other.Source, Source); }
public bool Equals(Inquiry other) { if (ReferenceEquals(null, other)) return false; if (ReferenceEquals(this, other)) return true; return other.Id == Id && Equals(other.Client, Client) && Equals(other.Source, Source) && Equals(other.Tags, Tags) && Equals(other.Comments, Comments); }