// GET api/<controller> public IEnumerable <PayrollViewModel> Get() { var list = payroll.SumPayrollHistoryByEmployee(); return(list); }