Example #1
0
 public void ActualizarListadoRoles(string strDatos)
 {
     try
     {
         JObject parametrosJO          = JObject.Parse(strDatos);
         int     intIdEmpresa          = int.Parse(parametrosJO.Property("Id").Value.ToString());
         string  strListado            = parametrosJO.Property("Datos").Value.ToString();
         List <RolePorEmpresa> listado = serializer.Deserialize <List <RolePorEmpresa> >(strListado);
         servicioMantenimiento.ActualizarRolePorEmpresa(intIdEmpresa, listado);
     }
     catch (Exception ex)
     {
         throw new WebFaultException <string>(ex.Message, HttpStatusCode.InternalServerError);
     }
 }