public HttpResponseMessage GetCompanyDashBoard(string companyId)
        {
            var content = new CompanyDashboard();

            try
            {
                content = this.dashBoardManager.GetCompanyDashboardByCompanyId(companyId);
            }
            catch (Exception e)
            {
                Logger.Error("HomeController:GetCompanyDashBoard(): " + e);
            }

            return(this.Request.CreateResponse(HttpStatusCode.OK, content));
        }
        public HttpResponseMessage CompleteCompanyDashboardSetupForModule([FromUri] string companyId, [FromUri] string chkBoxName)
        {
            var content = new CompanyDashboard();

            try
            {
                this.dashBoardManager.CompleteCompanyDashboardSetupForModule(companyId, chkBoxName);
                content = this.dashBoardManager.GetCompanyDashboardByCompanyId(companyId);
            }
            catch (Exception e)
            {
                Logger.Error("HomeController:CompleteCompanyDashboardSetupForModule(): " + e);
            }

            return(this.Request.CreateResponse(HttpStatusCode.OK, content));
        }
 public DashboardController(TimeKeeperContext context) : base(context)
 {
     personalDashboard = new PersonalDashboard(Unit);
     teamDashboard     = new TeamDashboard(Unit);
     companyDashboard  = new CompanyDashboard(Unit);
 }