Exemplo n.º 1
0
        public ActionResult MyListing()
        {
            var listing = new ProviderListingModel();
            var UserId  = User.Identity.GetUserId();

            listing           = listing.GetListingByUserId(UserId);
            listing.AvgRating = listing.AvgRatings(listing);
            return(View(listing));
        }
Exemplo n.º 2
0
        public PartialViewResult GetinboxDetail()
        {
            var listing = new ProviderListingModel();
            var UserId  = User.Identity.GetUserId();

            listing                 = listing.GetListingByUserId(UserId);
            listing.AvgRating       = listing.AvgRatings(listing);
            ViewBag.allusers        = new AgingInHomeContext().AspNetUsers.ToList();
            ViewBag.CustomeMessages = new InboxModel().GetAllCustomeMessagesByUserid(UserId).GroupBy(p => p.ConversationId)
                                      .Select(s => new CustomeMessagesModel {
                AllMessages = s.ToList()
            }
                                              ).ToList();
            return(PartialView("_providerInbox", listing.ServiceRequestDetails.ToList()));
        }
Exemplo n.º 3
0
        public ActionResult Dashboard()
        {
            var listing = new ProviderListingModel();
            var UserId  = User.Identity.GetUserId();

            listing                 = listing.GetListingByUserId(UserId);
            ViewBag.alllisting      = new ProviderListingModel().GetAllListing();
            listing.AvgRating       = listing.AvgRatings(listing);
            ViewBag.allusers        = new AgingInHomeContext().AspNetUsers.ToList();
            ViewBag.CustomeMessages = new InboxModel().GetAllCustomeMessagesByUserid(UserId).GroupBy(p => p.ConversationId)
                                      .Select(s => new CustomeMessagesModel {
                AllMessages = s.ToList()
            }
                                              ).ToList();
            return(View(listing));
        }