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

            string TechnicianID = CurrentUserID.GetUserID(this.User);

            this.Technician = await _context.GetTechnicianByIdAsync(TechnicianID);

            Project = await _context.GetProjectByIdAsync(id);

            if (Project == null)
            {
                return(NotFound());
            }
            return(Page());
        }