public async Task <JsonResult> EmployeeSalary(string username) { StatisticsService statistics = new StatisticsService(_employeeRepository); var model = await statistics.EmployeeSalary(username); return(Json(model, JsonRequestBehavior.AllowGet)); }