Ejemplo n.º 1
0
        public JsonResult GetAmenitiesByUnitCode(int unitcode)
        {
            var amentities = _buildingRepository.GetAmenitiesByUnitCode(unitcode);

            if (amentities.Count > 0)
            {
                return(new JsonResult(amentities));
            }
            return(new JsonResult(null));
        }