public BE_Json CreateUserGeneral([FromBody] CreateUserGeneralViewModel viewModel) { BE_Json objJson = null; var objListaAux = string.Empty; try { BL_Usuario _blUsuario = new BL_Usuario(); _blUsuario.connectionString = AppConfig.DbConnection; objListaAux = JsonConvert.SerializeObject(_blUsuario.CreateUserGeneral(viewModel.user, viewModel.CompanyCodeList, viewModel.RoleIdList, viewModel.authorize)); objJson = new BE_Json(); objJson.data = objListaAux; objJson.status = CManager.RESULTADO_WCF.OK; } catch (Exception ex) { objJson = new BE_Json(); objJson.data = "Hubo en error en servidor:" + ex.Message + ";" + ex.StackTrace + ";" + ex.ToString(); objJson.status = CManager.RESULTADO_WCF.ERROR; objJson.status = CManager.RESULTADO_WCF.ERROR; } finally { objListaAux = null; } return(objJson); }