Ejemplo n.º 1
0
        public async Task <IActionResult> GetHistory()
        {
            var model = new AllBaseAppoitmentViewModel()
            {
                Appoitments = await this.appointmentsService.GetHistoryAllStylistsAsync <BaseAppoitmentViewModel>(),
            };

            return(this.View(model));
        }
        public async Task <IViewComponentResult> InvokeAsync(string userId)
        {
            var model = new AllBaseAppoitmentViewModel()
            {
                Appoitments = await this.appointmentsService
                              .GetAppointmentsToReviewAsync <BaseAppoitmentViewModel>(userId),
            };

            return(this.View(model));
        }
        public async Task <IViewComponentResult> InvokeAsync(string stylistId)
        {
            var model = new AllBaseAppoitmentViewModel()
            {
                Appoitments = await this.appointmentsService
                              .GetRequestsAsync <BaseAppoitmentViewModel>(stylistId),
            };

            return(this.View(model));
        }
        public async Task <IActionResult> GetHistory()
        {
            var stylistId = this.userManager.GetUserId(this.User);

            var model = new AllBaseAppoitmentViewModel()
            {
                Appoitments = await this.appointmentsService.GetHistoryStylistAsync <BaseAppoitmentViewModel>(stylistId),
            };

            return(this.View(model));
        }