Ejemplo n.º 1
0
        public IHttpActionResult GetBuildingFloorsList(int id)
        {
            var buildingFloorList = _floorService.GetFloorsList(id);

            return(Ok(buildingFloorList));

            /*if (companyBuildingsList)
             *      return Ok(companyDto);
             * else
             *      return NotFound();*/
        }
 public IHttpActionResult GetAll()
 {
     return(Ok(_service.GetFloorsList().Select(x => new { x.Id, x.BuildingId, x.Description })));
 }