/// <summary> /// Gets all the information this class needs and sets the active page /// </summary> public void CheckTypeAndFill() { if (!LoginCheck.LoggedIn || user == null) Response.Redirect("login.aspx"); else if (!user.Email.Equals(String.Empty)) { try { service = new MatchyService(); dashboardCount = new DashboardCount(); dashboardCount.CompanyCounts = service.GetCountTables("Company"); dashboardCount.JobCounts = service.GetCountTables("Job"); dashboardCount.CvCounts = service.GetCountTables("Cv"); dashboardCount.UserCounts = service.GetCountTables("User"); dashboardCount.MatchCounts = service.GetCountTables("Match"); } catch (System.Web.Services.Protocols.SoapException) { } } }
public DashboardCount GetUserDashboardDetail([FromUri] int userid) { DashboardCount count = userRepository.GetDashboardCount(userid); return(count); }
public ActionResult GetUserDashboardDetail(int userid) { DashboardCount count = usermanager.GetDashboardCount(userid); return(Json(count, JsonRequestBehavior.AllowGet)); }