Ejemplo n.º 1
0
        public async Task <IActionResult> OnGetAsync(int?id)
        {
            if (id == null)
            {
                return(NotFound());
            }

            ClientUser clientUser = await UserLogic.GetUserAsync(User);

            SubTask = await AppointmentLogic.GetSubTaskByIdAsync(id.Value);

            if (SubTask == null)
            {
                return(NotFound());
            }

            Opening = AppointmentLogic.GetOpening(SubTask.CompanyUser.Opening);

            FinalOpening = await AppointmentLogic.GetFinalOpeningAsync(SubTask);

            Cars = await AppointmentLogic.GetCarsByIdAsync(clientUser.Id);

            return(Page());
        }