Ejemplo n.º 1
0
 public string GetUser(string token, int id, Culture culture = Culture.En)
 {
     if (!CheckToken(token))
     {
         return(null);
     }
     return(ToJson(SUser.Convert(DataManager.Users.Find(id), HttpContext, culture)));
 }
Ejemplo n.º 2
0
 public string Authenticate(string token, AuthenticationProvider provider, string id, string name, string lastName, string image, Culture culture = Culture.En)
 {
     if (!CheckToken(token))
     {
         return(null);
     }
     return(ToJson(SUser.Convert(DataManager.Users.Authenticate(provider, id, name, lastName, image), HttpContext, culture)));
 }