Beispiel #1
0
        //Always explicitly state the accepted HTTP method
        public async Task <ActionResult <int> > GetDefaultMachine()
        {
            int id = await _manager.GetDefaultMachine();

            return(Ok(id));
        }
Beispiel #2
0
 public async Task <int> GetDefaultMachine()
 {
     return(await _manager.GetDefaultMachine());
 }