コード例 #1
0
ファイル: HomeController.cs プロジェクト: Laila32496/Amourss
 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"));
 }
コード例 #2
0
 public static void insert(Contact c)
 {
     ContactRepo.Insert(c);
 }