public string GetFormModuleFunction(string ticket, int functionId, ref string message) { try { message = ""; if (!IsTicketValid(ticket)) { throw new Exception("票证验证失败!"); } YnFormModuleFunction ynFormModuleFunction = YnFormModuleFunctionService.GetInstance().Get(functionId); return(YnBaseClass2.Helper.ObjectHelper.Serialize(ynFormModuleFunction)); } catch (Exception ex) { message = ex.Message; } return(null); }
public bool UpdateFormModuleFunction(string ticket, string _ynFormModuleFunction, ref string message) { try { message = ""; if (!IsTicketValid(ticket)) { throw new Exception("票证验证失败!"); } YnFormModuleFunction ynFormModuleFunction = (YnFormModuleFunction)YnBaseClass2.Helper.ObjectHelper.Deserialize(typeof(YnFormModuleFunction), _ynFormModuleFunction); //ynUser.lastLoginDate = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"); YnFormModuleFunctionService.GetInstance().Update(ynFormModuleFunction); return(true); } catch (Exception ex) { message = ex.Message; } return(false); }