Пример #1
0
        public async Task <IHttpActionResult> GetAllTasksForBuildingsById([FromUri] int id)
        {
            {
                //instantiate service
                BuildingService service = CreateBuildingService();

                //return the values as an ienumerable
                IEnumerable <BuildingGetAllMaintenceTasks> building = await service.GetAllTasksInBuildingById(id);

                return(Ok(building));
            }
        }