public async Task <ResponseViewModel <EntranceDeployListView> > FunctionalSwitch([FromBody] RequestViewModel obj) { EntranceDeployListView result = new EntranceDeployListView(); obj = JsonHelper.DeserializeJsonToObject <RequestViewModel>(Content(User.Identity.Name).Content); ResponseViewModel <EntranceDeployListView> response = null; int iplatform = obj.Client.Platform == "Android" ? 0 : 1; result.SwitchList = await _routine.GetFunctionalSwitchListAsync(obj.Client.Version, iplatform); response = new ResponseViewModel <EntranceDeployListView>(SysCode.Ok, result, obj.Encrypt, _sys, obj.Secret); return(response); }