Exemple #1
0
        public ActionResult EditAdjustment(EmployeeAdjustmentCreateViewModel viewModel)
        {
            var adjustment = _employeeAdjustmentRepository.GetById(viewModel.EmployeeAdjustmentId);

            _employeeAdjustmentRepository.Update(adjustment);

            adjustment.InjectFrom(viewModel);
            _unitOfWork.Commit();

            return(RedirectToAction("Adjustment"));
        }
Exemple #2
0
 public void Update(EmployeeAdjustment employeeAdjustment)
 {
     _employeeAdjustmentRepository.Update(employeeAdjustment);
 }