Esempio n. 1
0
 public ActionResult Add(string surname, int number)
 {
     repo.Insert(surname, number);
     ViewBag.Select = repo.Select();
     return(RedirectToAction("Index"));
 }
Esempio n. 2
0
 public ActionResult <Models.Telephone> Add(Models.Telephone telephone)
 {
     repo.Insert(telephone.Surname, telephone.Number);
     return(Ok(telephone));
 }