Beispiel #1
0
        public void Add(EmployeeLogDto EmployeeLogDto)
        {
            var EmployeeLog = _mapper.Map <EmployeeLogDto, EmployeeLog>(EmployeeLogDto);

            _unitofWork.EmployeeLogRepository.Add(EmployeeLog);
            _unitofWork.SaveChanges();
        }
Beispiel #2
0
        public void Update(EmployeeLogDto EmployeeLogDto)
        {
            var EmployeeLog = _unitofWork.EmployeeLogRepository.Get(EmployeeLogDto.Id);

            _mapper.Map(EmployeeLogDto, EmployeeLog);

            _unitofWork.SaveChanges();
        }
Beispiel #3
0
        public IActionResult Update(EmployeeLogDto EmployeeLogDto)
        {
            _EmployeeLogService.Update(EmployeeLogDto);

            return(Ok());
        }
Beispiel #4
0
        public IActionResult Add(EmployeeLogDto EmployeeLogDto)
        {
            _EmployeeLogService.Add(EmployeeLogDto);

            return(Ok());
        }