public List <Summary> getSelectedProjectSummaries(int id)
        {
            bool rights = authRepo.getAdminRights() || authRepo.getTeamLeadRights(id);
            bool b      = authRepo.getAccountRights(id);

            Debug.WriteLine("SummaryAuth " + b + " " + authRepo.getAdminRights() + " " + authRepo.getTeamLeadRights(id));

            List <Summary> list = new List <Summary>();

            if (rights)
            {
                list = repo.getSelectedProjectSummaries(id);
            }
            else if (b)
            {
                list = repo.getSelectedProjectSummaries(id);;
            }
            //repo.getSelectedProjectSummaries(id);
            foreach (Summary summmary in list)
            {
                Console.WriteLine("Val " + summmary.Rating);
            }
            return(list);
        }
        public HttpResponseMessage getSelectedProjectSummaries(int id)
        {
            bool rights = authRepo.getAdminRights() || authRepo.getTeamLeadRights(id);
            bool b      = authRepo.getAccountRights(id);

            Debug.WriteLine("SummaryAuth " + b + " " + authRepo.getAdminRights() + " " + authRepo.getTeamLeadRights(id));

            List <Summary> list = new List <Summary>();

            list = repo.getSelectedProjectSummaries(id);
            if (authRepo.isAuthorized(id))
            {
                return(Request.CreateResponse(HttpStatusCode.OK, list));
            }
            else
            {
                return(Request.CreateResponse(HttpStatusCode.Forbidden));
            }
            //repo.getSelectedProjectSummaries(id);
            //foreach(Summary summmary in list) {
            //    Console.WriteLine("Val "+summmary.Rating);
            //}
            //return list;
        }