示例#1
0
 // GET: api/Owners
 public ICollection <Owner> GetOwners()
 {
     return(_repo.GetAllOwners().ToList());
 }
示例#2
0
 // GET: Owners
 public ActionResult Index()
 {
     return(View(repo.GetAllOwners()));
 }