Example #1
0
 private static string ReturnResult(string Status = "OK")
 {
     res_struct.Session     = username;
     res_struct.Update_Date = DateTime.Now.Year + "-" + DateTime.Now.Month + "-" + DateTime.Now.Day + " " + DateTime.Now.DayOfWeek.ToString();
     res_struct.Update_Time = string.Format("{0:00}:{1:00}", DateTime.Now.Hour, DateTime.Now.Minute);
     res_struct.Class       = "ECardSystem";
     res_struct.Status      = Status;
     return(Struct_ECardSystem.Serialiaze(res_struct));
 }
Example #2
0
 public static string Serialiaze(Struct_ECardSystem obj)
 {
     return(new JavaScriptSerializer().Serialize(obj));
 }