Example #1
0
        public ActionResult TripDetails()
        {
            ExpenseClient _exp        = new ExpenseClient();
            var           friendsList = new TripDetails
            {
                FriendList = _exp.GetFriendsList(Convert.ToInt32(Session["UserId"].ToString())).ToList()
            };

            return(View(friendsList));
        }
Example #2
0
        public ActionResult ProfileView()
        {
            AuthenticationClient authentication = new AuthenticationClient();
            ExpenseClient        _exp           = new ExpenseClient();
            var profile = new Userprofile();

            profile.UserProfile = authentication.GetUserProfile(Convert.ToInt32(Session["UserId"].ToString())).ToList();
            profile.Country     = authentication.CountrtyList().ToList();
            profile.Friends     = _exp.GetFriendsList(Convert.ToInt32(Session["UserId"].ToString())).ToList();
            return(View(profile));
        }
Example #3
0
        public ActionResult Dashboard()
        {
            AuthenticationClient authentication = new AuthenticationClient();
            ExpenseClient        _exp           = new ExpenseClient();

            var homepage = new Homepage();

            homepage.notification = authentication.FriendRequest(Convert.ToInt32(Session["UserId"].ToString())).ToList();
            //homepage.IncomeDetails = authentication.GetIncome(Convert.ToInt32(Session["UserId"].ToString())).ToList();
            homepage.UserProfile         = authentication.GetUserProfile(Convert.ToInt32(Session["UserId"].ToString())).ToList();
            homepage.GetFriendslist      = _exp.GetFriendsList(Convert.ToInt32(Session["UserId"].ToString())).ToList();
            homepage.amount              = _exp.GetTotalExpenseCurrentMonth(Convert.ToInt32(Session["UserId"].ToString()));
            homepage.LastmonthAmount     = _exp.GetTotalExpenseLastMonth(Convert.ToInt32(Session["UserId"].ToString()));
            homepage.chartByProd         = _exp.resultOverallChart(Convert.ToInt32(Session["UserId"].ToString())).ToList();
            Session["Profile"]           = homepage.UserProfile;
            Session["NotificationCount"] = homepage.notification.Count();
            Session["Notifications"]     = homepage.notification;
            return(View(homepage));
        }