public void Update(TypeDTO item) { AdvertisementType types = TypeMapper.CreateType().Map(item); using (var uow = _uowfactory.CreateUnitOfWork()) { var repo = uow.GetRepo <AdvertisementType>(); repo.Update(types); uow.BeginTransaction(); uow.Commit(); } }