public void AddToFavorite(string id) { #region SeedAction objSeed = new SeedAction(); Seed seedData = objSeed.GetSeedBySeedId(id); Member memberData = (Member)SessionStore.GetSessionValue(SessionStore.Memberobject); Bookmark objBookMark = new Bookmark(); objBookMark.id = Guid.NewGuid(); objBookMark.seedId = seedData.id; objBookMark.memberId = memberData.id; if (objSeed.GetBookmarkList(memberData.id.ToString(), seedData.id.ToString())) { seedData.Bookmarks.Add(objBookMark); objSeed.UpdateSeed(seedData); } Response.Redirect("/Seed/SeedDetails/" + seedData.id); #endregion }