// ************************************* // URL: /Seed/OwnershipDecision // ************************************* public ActionResult OwnershipDecision() { #region Member memberData = (Member)SeedSpeak.Util.SessionStore.GetSessionValue(SeedSpeak.Util.SessionStore.Memberobject); SeedAction objSeed = new SeedAction(); bool ownerUpdated = false; if (Request.QueryString["seedid"] != null && Request.QueryString["decision"] != null) { string seedID = Request.QueryString["seedid"].ToString(); string decision = Request.QueryString["decision"].ToString(); if (decision == "Accept") { ownerUpdated = objSeed.UpdateSeedOwner(seedID, memberData.id.ToString()); if (ownerUpdated == true) ViewData["Decision"] = "Accept"; else ViewData["Decision"] = "Problem updating owner"; } if (decision == "Reject") { ViewData["Decision"] = "Reject"; } } return View(); #endregion }