Beispiel #1
0
        public void Update(EmploymentSaveDto employment)
        {
            Employment emp = mapper.Map <Employment>(employment);

            repository.Update(emp);
            unitOfWork.Commit();
        }
Beispiel #2
0
        public async Task <ActionResult <Employment> > Edit(string id, Employment value)
        {
            // var product = new Product(value.Id);
            value.Id = ObjectId.Parse(id);
            _Employment.Update(value, id);

            await _uow.Commit();

            return(RedirectToAction("Index"));
        }