예제 #1
0
        public ActionResult <List <Models.Telephone> > Select()
        {
            var telephones = repo.Select();

            if (telephones == null)
            {
                return(NoContent());
            }
            return(Ok(telephones));
        }
예제 #2
0
 public IActionResult Index()
 {
     ViewBag.Select = repo.Select();
     return(View());
 }