// GET: SkillHeatMap/Details/5
 /// <summary>
 /// Fetch the project Details of the selected project ID
 /// </summary>
 /// <param name="projectID"></param>
 /// <returns></returns>
 public ActionResult Details(int projectID)
 {
     try
     {
         IDAL dal = (new DALFactory()).GetInstance();
         HeatMapProjectDetail heatMapProjectDetail = dal.GetHeatMapProjectDetailByProjectID(projectID);
         return(View(heatMapProjectDetail));
     }
     catch (Exception ex)
     {
         UserManager user = (UserManager)Session["CurrentUser"];
         LogHelper.AddLog(new LogEntity(AppConstant.PartitionError, user.EmailID.ToString(), AppConstant.ApplicationName, "SkillHeatMap,Details", ex.Message, ex.StackTrace));
         return(View());
     }
 }
Пример #2
0
        public HeatMapProjectDetail GetHeatMapProjectDetailByProjectID(RequestBase req, int projectID)
        {
            HeatMapProjectDetail hmpd = new HeatMapProjectDetail();

            try
            {
                SqlSvrDAL dal = new SqlSvrDAL(req.ClientInfo);
                hmpd = dal.GetHeatMapProjectDetailByProjectID(projectID);
            }
            catch (Exception ex)
            {
                //LogHelper.AddLog("ProjectController,GetHeatMapProjectDetailByProjectID", ex.Message, ex.StackTrace, "HCL.Academy.Service", req.ClientInfo.emailId);
                TelemetryClient telemetry = new TelemetryClient();
                telemetry.TrackException(ex);
            }
            return(hmpd);
        }
Пример #3
0
        // GET: SkillHeatMap/Details/5
        /// <summary>
        /// Fetch the project Details of the selected project ID
        /// </summary>
        /// <param name="projectID"></param>
        /// <returns></returns>
        public async Task <ActionResult> Details(int projectID)
        {
            InitializeServiceClient();
            try
            {
                HttpResponseMessage response = await client.PostAsJsonAsync("Project/GetHeatMapProjectDetailByProjectID?projectID=" + projectID, req);

                HeatMapProjectDetail heatMapProjectDetail = await response.Content.ReadAsAsync <HeatMapProjectDetail>();

                return(View(heatMapProjectDetail));
            }
            catch (Exception ex)
            {
                //UserManager user = (UserManager)Session["CurrentUser"];
                //LogHelper.AddLog("SkillHeatMapController", ex.Message, ex.StackTrace, "HCL.Academy.Web", user.EmailID);
                return(View());
            }
        }
Пример #4
0
 public ActionResult Details(HeatMapProjectDetail p)
 {
     return(View(p));
 }