Ejemplo n.º 1
0
 public void GetAll()
 {
     //IList<Photo> objPhoto = new List<Photo>();
     //var photos = new PhotoFacade().SelPostsForTimeLine(new Guid(UserId));
     IList<Status> objStatus = new List<Status>();
     var status = new StatusFacade().SelPhotosOnly(new Guid(UserId));
     if (status != null)
         objStatus = (status.ToList());
     rptPhotos.DataSource = objStatus;
     rptPhotos.DataBind();
 }
Ejemplo n.º 2
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (Session["UserId"] != null && Session["LoginId"] != null && Session["Name"] != null)
     {
         LoggedInUserId = SessionManager.LoggedInUser.UserId.ToString();
         hdnUserImage.Value = SessionManager.LoggedInUser.UserImage;
         UserId = Session["UserId"].ToString();
         hdnUserName.Value = Session["Name"].ToString();
         MaxRecords = new StatusFacade().SelNewsFeedCount(new Guid(Session["UserId"].ToString()));
     }
     else
         Response.Redirect("../Default.aspx");
 }
Ejemplo n.º 3
0
 public static object SelPostsForWallByPaging(string LoggedInUserId, string SelectedUserId, string searchStriing, string sortBy, int startIndex, int pageSize)
 {
     int count = 0;
     IList<Status> ObjStatus = new StatusFacade().SelPostsForWallByPaging(new Guid(LoggedInUserId), new Guid(SelectedUserId), searchStriing, sortBy, startIndex, pageSize, out count);
     return new { ObjStatus = ObjStatus, count = count };
 }