Beispiel #1
0
        public PartialViewResult CandidateDetail(int userid)
        {
            var user = HttpContext.Session.Get <UserViewModel>(Constants.SessionKeyUserInfo);

            user = user ?? new UserViewModel();
            CandidatesViewModel candidatedetail = null;

            try
            {
                candidatedetail = dashboardHandler.GetCandidateDetails(userid);
            }
            catch (DataNotFound ex)
            {
                Logger.Logger.WriteLog(Logger.Logtype.Error, ex.Message, user.UserId, typeof(DashboardController), ex);
            }
            return(PartialView("CandidateDetailFormPartial", candidatedetail));
        }