/// <summary> /// This method will call the Story Resource access class method to get the Tribute Detail, /// Story, and List of topic in More About section. and calcumate the age of the User. /// </summary> /// /// <param name="objStory"> This is the stories object which contain the Tribute ID to get ///the story for that tribute and user ID to get that user is admin or not for that tribute /// </param> /// /// <returns> This method will return the story object /// </returns> public Stories GetStoryDetail(Stories objStoryParam) { try { StoryResource objStoryRes = new StoryResource(); Stories objStory = objStoryRes.GetStoryDetail(objStoryParam); if (objStory.TributeType == "Memorial") { objStory.Age = CalculateAge( objStory.Date1, objStory.Date2 ); } return objStory; } catch (Exception ex) { throw ex; } }