public ActionResult WebinarLogin() { logMessage = new StringBuilder(); try { logMessage.AppendLine(string.Format(CultureInfo.InvariantCulture, "Called {2} function ::{0} {1}.", DateTime.Now.ToShortDateString(), DateTime.Now.ToShortTimeString(), MethodBase.GetCurrentMethod().Name)); objDecisionPointEngine = new DecisionPointEngine(); // IList<WebinarUsersResponse> userList = objDecisionPointEngine.GetWebinarOrganiser(Convert.ToInt32(Session["UserId"], CultureInfo.InvariantCulture)); IList <WebinarUsersResponse> userList = objDecisionPointEngine.GetWebinarOrganiser(1);// for super admin credentails fixed temprorary if (userList != null && userList.Count > 0) { objWebinarModel = new WebinarModel() { Id = userList[0].Id, UserId = userList[0].UserId, emailId = userList[0].UserName, apiKey = userList[0].AppKey, password = userList[0].Password, OrganiserId = userList[0].OrganiserId, }; return(WebinarLogin(objWebinarModel)); } else { return(View()); } } catch (Exception ex) { log.ErrorFormat("Error : {0}\n By : {1}-{2}", ex.ToString(), typeof(LoginController).Name, MethodBase.GetCurrentMethod().Name); return(RedirectToAction("Error", "Login", new { errorMsg = ex.ToString() })); } finally { logMessage.AppendLine(string.Format(CultureInfo.InvariantCulture, "End {0} function.", MethodBase.GetCurrentMethod().Name)); log.Info(logMessage.ToString()); } }