public async Task Post([FromBody] DeviceDT device) { await DevicesMgr.AddDeviceAsync(_AccountId, device.Username, device.Password); }
public async Task Delete(int id) { await DevicesMgr.DeleteDeviceAsync(_AccountId, id); }
public async Task <IEnumerable <DeviceDT> > Get() { return(await DevicesMgr.GetDevicesAsync(_AccountId)); }