public CommentTributeAdministrator GetSessionObject(int CurrentPage) { try { CommentTributeAdministrator objComAdmin = new CommentTributeAdministrator(); objComAdmin.CurrentPage = (int)CurrentPage; objComAdmin.PageSize = (int)intPageSize; objComAdmin.TotalRecords = totalRecordCount; return objComAdmin; } catch (Exception ex) { throw ex; } }
/// <summary> /// Method to get the list of comments for selected photo /// </summary> /// <param name="objComment">Object containing PhotoId</param> /// <returns>List of comments</returns> public List<CommentTributeAdministrator> GetModuleComments(CommentTributeAdministrator objComment) { CommentResources objCommentResource = new CommentResources(); object[] param ={ objComment }; return objCommentResource.GetModuleComments(param); }
/// <summary> /// Method to get the list of commnets for the selected video /// </summary> /// <param name="objComment">Comment entity containing videoid</param> /// <returns>List of comments</returns> public List<CommentTributeAdministrator> GetModuleComments(CommentTributeAdministrator objComment) { return FacadeManager.VideoManager.GetModuleComments(objComment); }
/// <summary> /// Method to set values to the comment object /// </summary> /// <param name="CurrentPage">Current page number</param> /// <returns>Filled CommentTributeAdministrator entity.</returns> public CommentTributeAdministrator SetCommentObject(int CurrentPage) { CommentTributeAdministrator objComAdmin = new CommentTributeAdministrator(); objComAdmin.UserId = _userId; objComAdmin.TypeCodeName = typeCodeName; objComAdmin.CommentTypeId = _videoId; objComAdmin.TributeId = _tributeId; objComAdmin.CurrentPage = CurrentPage; objComAdmin.PageSize = pageSize; return objComAdmin; }
public int RecordCount(CommentTributeAdministrator objSesion) { return FacadeManager.CommentMgr.RecordCount(objSesion); }
public List<CommentTributeAdministrator> CommentList(CommentTributeAdministrator objSession) { return FacadeManager.CommentMgr.CommentList(objSession); }
/// <summary> /// Method to get the list of comments for Notes /// </summary> /// <param name="objSession">Filled CommentTributeAdmin Entity</param> /// <returns>List of comments for selected Note</returns> public List<CommentTributeAdministrator> GetModuleComments(CommentTributeAdministrator objSession) { return FacadeManager.CommentMgr.GetModuleComments(objSession); }
/// <summary> /// Method to get the comments module wise /// </summary> /// <param name="objSesion"></param> /// <returns></returns> public List<CommentTributeAdministrator> GetModuleComments(object[] objSesion) { CommentTributeAdministrator objComAdmin = (CommentTributeAdministrator)objSesion[0]; object[] objValue ={ objComAdmin.UserId, objComAdmin.TypeCodeName, objComAdmin.CommentTypeId, objComAdmin.TributeId, objComAdmin.CurrentPage, objComAdmin.PageSize }; DataSet dsComments = GetDataSet("usp_GetModuleComments", objValue); List<CommentTributeAdministrator> objCommentList = new List<CommentTributeAdministrator>(); foreach (DataRow dr in dsComments.Tables[0].Rows) { CommentTributeAdministrator objComment = new CommentTributeAdministrator(); objComment.CommentId = int.Parse(dr["CommentId"].ToString()); objComment.UserId = int.Parse(dr["UserId"].ToString()); objComment.TypeCodeId = int.Parse(dr["TypeCodeId"].ToString()); objComment.CommentTypeId = int.Parse(dr["CommentTypeId"].ToString()); objComment.Message = dr["Message"].ToString(); objComment.CreatedBy = int.Parse(dr["CreatedBy"].ToString()); objComment.CreatedDate = DateTime.Parse(dr["CreatedDate"].ToString()).ToString("MMMM dd, yyyy"); objComment.UserType = int.Parse(dr["UserType"].ToString()); objComment.UserImage = dr["userImage"].ToString(); objComment.IsAdmin = int.Parse(dr["IsAdmin"].ToString()); objComment.UserName = dr["userName"].ToString(); objComment.City = dr["City"].ToString(); objComment.State = dr["State"].ToString(); objComment.Country = dr["Country"].ToString(); objComment.IsLocationHide = bool.Parse(dr["IsLocationHide"].ToString()); objComment.FacebookUid = null; if (!string.IsNullOrEmpty(dr["FacebookUid"].ToString())) { objComment.FacebookUid = (Nullable<Int64>)dr["FacebookUid"]; } objCommentList.Add(objComment); objComment = null; } return objCommentList; }
public CommentTributeAdministrator GetSessionObject(int CurrentPage) { try { //TributesPortal.Utilities.StateManager SMobject = StateManager.Instance; CommentTributeAdministrator objComAdmin = new CommentTributeAdministrator(); objComAdmin.UserId = _userId; objComAdmin.TypeCodeId = typeCodeId; objComAdmin.CommentTypeId = _tributeId; objComAdmin.TributeId = _tributeId; objComAdmin.CurrentPage = (int)CurrentPage; objComAdmin.PageSize = (int)intPageSize; objComAdmin.TotalRecords = totalRecordCount; return objComAdmin; } catch (Exception ex) { throw ex; } }