/// <summary>
        /// Method to add commitments.
        /// </summary>
        /// <param name="seedId"></param>
        /// <param name="memberId"></param>
        /// <param name="commitmentDate"></param>
        /// <param name="commitmentMsg"></param>
        /// <returns></returns>
        public bool addCommitment(string seedId, string memberId, string commitmentDate, string commitmentMsg)
        {
            #region
            bool actionDone = false;
            SeedAction objSeed = new SeedAction();
            Seed seedData = objSeed.GetSeedBySeedId(seedId);
            seedData.status = SystemStatements.STATUS_GROWING;

            Commitment objCommit = new Commitment();
            objCommit.id = Guid.NewGuid();
            objCommit.commitDate = DateTime.Now;
            objCommit.deadline = Convert.ToDateTime(commitmentDate);
            objCommit.memberId = new Guid(memberId);
            objCommit.seedId = seedData.id;
            objCommit.status = SystemStatements.STATUS_ACTIVE;
            objCommit.msg = commitmentMsg;
            objCommit.isRead = false;

            seedData.Commitments.Add(objCommit);
            seedData = objSeed.UpdateSeed(seedData);
            if (seedData != null)
                actionDone = true;

            return actionDone;
            #endregion
        }
        public void AddCommitment(string Sid, string Deadline, string Msg)
        {
            #region
            SeedAction objSeed = new SeedAction();
            Seed seedData = objSeed.GetSeedBySeedId(Sid);
            seedData.status = SystemStatements.STATUS_GROWING;

            Member memberData = (Member)SessionStore.GetSessionValue(SessionStore.Memberobject);

            Commitment objCommit = new Commitment();
            objCommit.id = Guid.NewGuid();
            objCommit.commitDate = DateTime.Now;
            objCommit.deadline = Convert.ToDateTime(Deadline);
            objCommit.memberId = memberData.id;
            objCommit.seedId = seedData.id;
            objCommit.status = SystemStatements.STATUS_ACTIVE;
            objCommit.msg = Msg;
            objCommit.isRead = false;

            seedData.Commitments.Add(objCommit);
            objSeed.UpdateSeed(seedData);

            MailForContribution((seedData.Member.firstName + " " + seedData.Member.lastName).ToString(), (memberData.firstName + " " + memberData.lastName).ToString(), seedData.title, ("http://" + Request.ServerVariables["SERVER_NAME"] + "/Member/UserDetail/" + memberData.id), seedData.Member.username.ToString(), "Commitment");

            Response.Redirect("/Seed/SeedDetails/" + seedData.id);
            #endregion
        }