Ejemplo n.º 1
0
        public IActionResult EmployeeDashboard(int id)
        {
            var total       = _Services.EmployeeTotalScore(id);
            var name        = _Services.EmployeeNameById(id);
            var bstrength   = _Services.BehavioralStrength(id);
            var bweakness   = _Services.BehavioralWeakness(id);
            var krastregth  = _Services.KeyResultAreaStrength(id);
            var kraweakness = _Services.KeyResultAreaWeakness(id);
            var model       = new EmployeeDashboardViewModel
            {
                EmployeeId         = id,
                EmployeeName       = name,
                TotalScore         = total,
                BehavioralStrength = bstrength,
                BehavioralWeakness = bweakness,
                KeyResultStrength  = krastregth,
                KeyResultWeakness  = kraweakness,
            };

            return(View(model));
        }