public ActionResult AddContact(Contact contact) { if (ContactRepo.Insert(contact)) { Notify("Success", "Successfully Savd", "your message has been successfully saved", false, false, true); } else { Notify("Error", "Technical Error", "Unable to save message due to technical error", false, false, true); } return(RedirectToAction("Contact")); }
public static void insert(Contact c) { ContactRepo.Insert(c); }