Beispiel #1
0
 public ActionResult Edit(ContactInfo contactInfo)
 {
     if (!String.IsNullOrEmpty(contactInfo.FirstName) ||
         !String.IsNullOrEmpty(contactInfo.LastName) ||
         !String.IsNullOrEmpty(contactInfo.Email) ||
         !String.IsNullOrEmpty(contactInfo.Phone) ||
         !String.IsNullOrEmpty(contactInfo.Status))
     {
         _contactInfoService.EditContact(contactInfo);
     }
     return(RedirectToAction("GetContactInfo"));
 }