예제 #1
0
        private CodeExampleServices GetCodeExampleService()
        {
            var userId  = User.Identity.GetUserId();
            var service = new CodeExampleServices(userId);

            return(service);
        }
예제 #2
0
        public ActionResult UserCode()
        {
            var userId  = User.Identity.GetUserId();
            var service = new CodeExampleServices(userId);

            var userExampleList = service.GetAllExamplesByUserId(userId);

            if (userExampleList == null)
            {
                return(View());
            }


            return(View(userExampleList));
        }