public ActionResult MyListing() { var listing = new ProviderListingModel(); var UserId = User.Identity.GetUserId(); listing = listing.GetListingByUserId(UserId); listing.AvgRating = listing.AvgRatings(listing); return(View(listing)); }
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())); }
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)); }