Details about both inquiry
Inheritance: IIdentifiable
Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 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);
 }
Ejemplo n.º 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);
 }