Esempio n. 1
0
        public async Task <IHttpActionResult> GetAllTasksForMachineById([FromUri] int id)
        {
            //instantiate service
            MachineService service = CreateMachineService();

            var result = await service.GetAllTasksForMachineById(id);

            return(Ok(result)); //200
        }