public async Task <ActionResult <IEnumerable <Case> > > GetAllCases()
        {
            try
            {
                string userId = _auth.GetUserIdFromToken(HttpContext);
                User   user   = await _user.GetUserByIdAsync(userId);

                if (user == null)
                {
                    return(Forbid());
                }

                if (user.Role.Id == Role.Consultant.Id)
                {
                    return(await _case.GetAllCasesForConsultantAsync(user));
                }
                else if (user.Role.Id == Role.Client.Id)
                {
                    return(await _case.GetAllCasesForClientAsync(user));
                }
                else
                {
                    return(Forbid());
                }
            }
            catch (Exception e)
            {
                return(StatusCode(StatusCodes.Status500InternalServerError, e));
            }
        }