Exemplo n.º 1
0
        public ActionResult <List <Owner> > GetOwners()
        {
            List <Owner> owners = new List <Owner>();

            owners = ownerDAO.GetOwners();
            if (owners.Count > 0)
            {
                return(Ok(owners));
            }
            else

            {
                return(NoContent());
            }
        }
Exemplo n.º 2
0
 public ActionResult <List <Owner> > GetOwners()
 {
     return(Ok(dao.GetOwners()));
 }