Example #1
0
        // GET: Admin
        public ActionResult Index()
        {
            var user = _userService.GetUserByLogin(User.Identity.Name).ToMvc();

            user.Role   = _roleService.GetRoleEntity(user.RoleId).Name;
            user.Result = _resultService.GetAllResults().Select(t => t.ToMvc());
            return(View("Profile", user));
        }
Example #2
0
 public ActionResult GetInfoResult(string IdUser, string search)
 {
     return(View(_resultService.GetAllResults(search, IdUser)));
 }