Beispiel #1
0
        public ActionResult ListClientClaims()
        {
            User currentUser = userFactory.GetCurrentUser();

            ModelsLayer.ClaimsEntities ClaimsEntities = new ModelsLayer.ClaimsEntities();

            var clientClaims =
                from claims in ClaimsEntities.Claims
                where claims.UserID == currentUser.UserId
                select claims;

            List <Claim> claimsList = clientClaims.ToList();

            return(View(claimsList));
        }
Beispiel #2
0
        public ActionResult GoogleDonutChart(String StatusName)
        {
            ModelsLayer.User clientUser = GetUserID();

            ModelsLayer.ClaimsEntities ClaimsEntities = new ModelsLayer.ClaimsEntities();

            var c =
                ClaimsEntities.Claims
                .GroupBy(n => n.ClaimStatu.Name)
                .Select(n => new ClaimStatusAggregate
            {
                Status  = n.Key,
                Counter = n.Count()
            }
                        )
                .OrderBy(n => n.Status);


            return(View(c.ToList()));
        }