public ViewResult Contact(ContactInfo contactInfo)
 {
     // stores contact messages
     contactInfo.MessageDate = DateTime.Now;
     MailBox.AddMail(contactInfo);
     return(View());
 }
 public ViewResult Contact(ContactInfo contactInfo)
 {
     if (ModelState.IsValid)
     {
         // stores contact messages
         MailBox.AddMail(contactInfo);
         return(View(contactInfo));
     }
     else
     {
         return(View());
     }
 }