Esempio n. 1
0
 public ActionResult Create(ContactInfo contactInfo)
 {
     if (!String.IsNullOrEmpty(contactInfo.FirstName) ||
         !String.IsNullOrEmpty(contactInfo.LastName) ||
         !String.IsNullOrEmpty(contactInfo.Email) ||
         !String.IsNullOrEmpty(contactInfo.Phone) ||
         !String.IsNullOrEmpty(contactInfo.Status))
     {
         _contactInfoService.CreateContact(contactInfo);
     }
     return(RedirectToAction("GetContactInfo"));
 }