Exemplo n.º 1
0
        /// <summary>
        /// Get a specific property by ID
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>

        // GET: api/Property/5
        public Property Get(int id)
        {
            PropertyPersistence pp = new PropertyPersistence();

            Property property = pp.GetProperty(id);

            return(property);
        }
Exemplo n.º 2
0
        /// <summary>
        /// Get all Property
        /// </summary>
        /// <returns></returns>
        // GET: api/Property
        public ArrayList Get()
        {
            PropertyPersistence pp = new PropertyPersistence();

            return(pp.GetProperty());
        }