public string Create(Data.SystemUser o) { // using (var scope = new TransactionScope()) { _unitOfWork.SystemUserRepo.Insert(o); _unitOfWork.Save(); // scope.Complete(); return(o.Id); } _unitOfWork.SystemUserRepo.Insert(o); }
public bool Update(Data.SystemUser o) { var success = false; if (o != null) { // using (var scope = new TransactionScope()) { var product = _unitOfWork.SystemUserRepo.GetByID(o.Id); if (product != null) { //product = productEntity.ProductName; _unitOfWork.SystemUserRepo.Update(product); _unitOfWork.Save(); // scope.Complete(); success = true; } } } return(success); }