// 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)); }
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)); } }
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)); } }