コード例 #1
0
        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);
        }
コード例 #2
0
        public ActionResult Get()
        {
            var salaries = _repo.GetAll();

            return(Ok(salaries));
        }