Exemple #1
0
        // GET: RfidStamp/Save?uid=12225
        public string Save(string uid)
        {
            RfidStamp rfidStamp = new RfidStamp();

            rfidStamp.UID = uid;
            var result = new RfidStampBIL().insert(rfidStamp);

            return(new JavaScriptSerializer().Serialize(result));
        }
Exemple #2
0
 public string Edit(RfidStamp rfidStamp)
 {
     try
     {
         var result = new RfidStampBIL().update(rfidStamp);
         return(new JavaScriptSerializer().Serialize(result));
     }
     catch (Exception ex)
     {
         ExceptionHandler Exception = new ExceptionHandler();
         Exception.Code    = "01";
         Exception.Message = ex.Message;
         return(new JavaScriptSerializer().Serialize(Exception));
     }
 }
Exemple #3
0
 public string Create(RfidStamp rfidStamp)
 {
     try
     {
         // TODO: Add insert logic here
         var result = new RfidStampBIL().insert(rfidStamp);
         return(new JavaScriptSerializer().Serialize(result));
     }
     catch (Exception ex)
     {
         ExceptionHandler Exception = new ExceptionHandler();
         Exception.Code    = "01";
         Exception.Message = ex.Message;
         return(new JavaScriptSerializer().Serialize(Exception));
     }
 }