예제 #1
0
 public UsuarioModel()
 {
     if (Auth().IsAuthenticated)
     {
         var usuario = ServicioUsuario.Get(new ServicioUsuarioRequest {
             Username = Auth().Name
         });
         id  = usuario.Id;
         rol = usuario.Rol;
     }
 }
예제 #2
0
 public IHttpActionResult Get()
 {
     return(Ok(_servicio.Get(Util.USUARIO)));
 }