public bool Update(BllUserEntity item) { var user = _userRepository.GetById(item.Id); if (user == null) { return(false); } _userRepository.Update(item.ToDal()); _unitOfWork.Commit(); return(true); }
private void Create(BllUserEntity user) { _userRepository.Create(user.ToDal()); _unitOfWork.Commit(); }