// GET: api/v1/devicetypes public async Task <HttpResponseMessage> GetAllDeviceTypes() { return(await GetServiceResponseAsync <List <DeviceType> >(async() => { return await _deviceTypeLogic.GetAllDeviceTypesAsync(); })); }
public async Task <ActionResult> AddDevice() { var deviceTypes = await _deviceTypeLogic.GetAllDeviceTypesAsync(); return(View(deviceTypes)); }