Exemplo n.º 1
0
Arquivo: Api.cs Projeto: wei20050/Wdxx
 public static bool PutUser(user u)
 {
     return(CoreWebApi.Send <bool>(Url, null, u));
 }
Exemplo n.º 2
0
Arquivo: Api.cs Projeto: wei20050/Wdxx
 public static bool DeleteUser(string id)
 {
     return(CoreWebApi.Send <bool>(Url, id));
 }
Exemplo n.º 3
0
Arquivo: Api.cs Projeto: wei20050/Wdxx
 public static user GetUser(string id)
 {
     return(CoreWebApi.Send <user>(Url, id));
 }
Exemplo n.º 4
0
Arquivo: Api.cs Projeto: wei20050/Wdxx
 public static IEnumerable <user> GetUser()
 {
     return(CoreWebApi.Send <IEnumerable <user> >(Url));
 }
Exemplo n.º 5
0
Arquivo: Api.cs Projeto: wei20050/Wdxx
 public static DateTime GetTime()
 {
     return(CoreWebApi.Send <DateTime>(Url));
 }
Exemplo n.º 6
0
Arquivo: Api.cs Projeto: wei20050/Wdxx
 public static string GetTest()
 {
     return(CoreWebApi.Send <string>(Url, null, null, 1));
 }