public ViewResult GetSalary(string name) { EmployeeSalary _employeeSalary = _salaryRepository.GetSalaryByName(name); var model = _employeeSalary; return(View(model)); }