public static List <RelationRequestViewModel> GetRelationRequestList()
        {
            List <RelationRequestViewModel> UList = new List <RelationRequestViewModel>();

            RelationRequestDAL.GetRelationRequestList().ForEach(r => UList.Add(new RelationRequestViewModel(r)));
            return(UList);
        }
Exemplo n.º 2
0
        // GET: ControlPanel
        public ActionResult Index()
        {
            if (UserHelpar.GetUserType() != "Admin")
            {
                return(RedirectToAction("Unauthorized", "Home", null));
            }

            var persons = PersonDAL.GetPersonsList();

            ViewBag.PersonCount = persons.Count;

            var RegisterRequest = RegisterRequestsDAL.Get_RegisterRequestsList();

            ViewBag.RegisterRequestCount = RegisterRequest.Count;

            var RelationRequest = RelationRequestDAL.GetRelationRequestList();

            ViewBag.RelationRequestCount = RelationRequest.Count;

            return(View());
        }