public CustomIdentity(FormsAuthenticationTicket ticket)
        {
            _ticket = ticket;
            JObject                   resut      = (JObject)JsonConvert.DeserializeObject(_ticket.UserData);
            JsonSerializer            serializer = new JsonSerializer();
            AdministrativoPermisoJson item       = (AdministrativoPermisoJson)serializer.Deserialize(new JTokenReader(resut), typeof(AdministrativoPermisoJson));

            _ListaPermiso = item.NombreURl;
        }
예제 #2
0
 public AdministrativoPermisoJson GetAdminJson()
 {
     try
     {
         AdministrativoPermisoJson _customerJson = new AdministrativoPermisoJson
         {
             NombreURl = _ListaPermiso
         };
         return(_customerJson);
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }