public IEnumerable <SalaryViewModel> GetPerMonthByEmloyeeId(int employeeId) { List <Salary> domainModels = _salaryRepository.GetAll().ToList(); List <SalaryViewModel> viewModels = new List <SalaryViewModel>(domainModels.Count()); viewModels.AddRange(domainModels.Select(Mapper.Map <SalaryViewModel>)); return(viewModels); }
public ActionResult Get() { var salaries = _repo.GetAll(); return(Ok(salaries)); }