示例#1
0
 public JsonpResult Save(string clientName,
                         string clientNo,
                         string orgName,
                         string address,
                         string state,
                         string country,
                         string email,
                         string hostname
                         )
 {
     Tz.ClientManager.Client c = new Tz.ClientManager.Client(clientName,
                                                             clientNo,
                                                             address,
                                                             state,
                                                             country,
                                                             email,
                                                             "",
                                                             orgName,
                                                             hostname,
                                                             true);
     c.Save();
     return(new JsonpResult(c.ClientID));
 }
示例#2
0
 public JsonpResult Update(string clientID
                           , string clientName,
                           string clientNo,
                           string orgName,
                           string address,
                           string state,
                           string country,
                           string email,
                           string hostname
                           )
 {
     Tz.ClientManager.Client c = new Tz.ClientManager.Client(clientID);
     c.ClientName       = clientName;
     c.ClientNo         = clientNo;
     c.OrganizationName = orgName;
     c.Address          = address;
     c.State            = state;
     c.Country          = country;
     c.Email            = email;
     c.ClientHost       = hostname;
     c.Save();
     return(new JsonpResult(c.ClientID));
 }
示例#3
0
 public JsonpResult Get(string clientid)
 {
     Tz.ClientManager.Client c = new Tz.ClientManager.Client(clientid);
     return(new JsonpResult(c));
 }