Details about both inquiry
Inheritance: IIdentifiable
        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);
        }
示例#2
0
 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);
 }
示例#3
0
 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);
 }