public AgreementModel GetManagementModel(Himall.Model.AgreementInfo.AgreementTypes type) { AgreementModel model = new AgreementModel(); var iAgreement = _iSystemAgreementService.GetAgreement(type); model.AgreementType = iAgreement.AgreementType; model.AgreementContent = iAgreement.AgreementContent; return(model); }
public AgreementModel GetManagementModel(Himall.Model.AgreementInfo.AgreementTypes type) { AgreementModel model = new AgreementModel(); model.AgreementType = (int)type; var agreement = SystemAgreementApplication.GetAgreement(type); if (agreement != null) { model.AgreementContent = agreement.AgreementContent; } return(model); }
/// <summary> /// 获取协议信息 /// </summary> /// <param name="Id"></param> /// <returns></returns> public static Himall.Model.AgreementInfo GetAgreement(Himall.Model.AgreementInfo.AgreementTypes type) { return(_iSystemAgreementService.GetAgreement(type)); }
/// <summary> /// 获取协议信息 /// </summary> /// <param name="Id">协议类型</param> /// <returns></returns> public AgreementInfo GetAgreement(Himall.Model.AgreementInfo.AgreementTypes type) { return(Context.AgreementInfo.Where(b => b.AgreementType == (int)type).FirstOrDefault()); }