// GET: Ratings/Details/5
        public ActionResult Details(int id)
        {
            var curRatingRaw = clientRating.GetRatingAsync(id).Result;

            var allRatingTypesRaw = clientRatingType.GetRatingTypeAllAsync().Result;

            var curRating = new Models.Rating();

            curRating.FromClient(curRatingRaw, allRatingTypesRaw);

            return(View(curRating));
        }
        // GET: Ratings
        public ActionResult Index()
        {
            var allRatingsRaw = clientRating.GetRatingAllAsync().Result;
            var lstAllRatings = new List <Models.Rating>();

            var allRatingTypesRaw = clientRatingType.GetRatingTypeAllAsync().Result;

            foreach (var rating in allRatingsRaw)
            {
                var curRating = new Models.Rating();
                curRating.FromClient(rating, allRatingTypesRaw);
                lstAllRatings.Add(curRating);
            }


            return(View(lstAllRatings));
        }