Ejemplo n.º 1
0
        public void Save(UserBase userBase)
        {
            mObjectLocationBO.Save(userBase.Location);

            mUserBaseDAL.Save(userBase);

            /*for(int i = 0; i < userBase.HoldingsInfo.Count; i++)
             *      mHoldingsInfoBO.Save(userBase.HoldingsInfo[i]);
             *
             * for(int i = 0; i < userBase.Resources.Count; i++)
             *      mResourceBaseBO.Save(userBase.Resources[i]);*/
        }
Ejemplo n.º 2
0
        public void Save(EventBase eventBase)
        {
            mEventLocationBO.Save(eventBase.EventLocation);

            mEventBaseDAL.Save(eventBase);

            mResourceDescriptionBO.Save(eventBase.ResourceDescription);

            mEventTimeInfoBO.Save(eventBase.EventTimeInfo);

            foreach (HoldingsInfo holdingsInfo in eventBase.HoldingsInfo)
            {
                mHoldingsInfoBO.Save(holdingsInfo);
            }
        }
    public string SaveEventDetails(
        string topic,
        string description,
        string startDate,
        string startTime,
        string finishDate,
        string finishTime,
        string location,
        string valueNeeded)
    {
        if (!mIsInit)
        {
            InitMembers();
        }

        if (mCurrentEvent == null)
        {
            return("Event is not Loaded");
        }

        mCurrentEvent.ResourceDescription.Topic   = topic;
        mCurrentEvent.ResourceDescription.Summary = description;        //.Replace("\n", "<br/>");
        mResourceDescriptionBO.Save(mCurrentEvent.ResourceDescription);

        mCurrentEvent.EventTimeInfo.BecomeActive   = CommonStaticFunctions.ParseDateTime(startDate, startTime);
        mCurrentEvent.EventTimeInfo.BecomeInactive = CommonStaticFunctions.ParseDateTime(finishDate, finishTime);
        mEventTimeInfoBO.Save(mCurrentEvent.EventTimeInfo);

        mCurrentEvent.EventLocation.Address1 = location;
        mObjectLocationBO.Save(mCurrentEvent.EventLocation);

        int value = int.Parse(valueNeeded);

        mCurrentEvent.Value = value;

        mEventBaseBO.Save(mCurrentEvent);

        return("Event details was saved successfully");
    }