public int SaveEncryptedPsmartShr(string encryptedShr) { Psmart_Store psmartStore = new Psmart_Store() { Status = "PENDING", uuid = Guid.NewGuid().ToString(), SHR = encryptedShr.ToString() }; _result = _psmartStoreManager.SaveShr(psmartStore); return(_result); }
public int SaveShr(Psmart_Store psmartStore) { try { using (UnitOfWork unitOfWork = new UnitOfWork(new PsmartContext())) { unitOfWork.PSmartStoreRepository.Add(psmartStore); _result = unitOfWork.Complete(); unitOfWork.Dispose(); return(_result); } } catch (Exception e) { Console.WriteLine(e); throw new Exception(e.Message); } }
public int SaveShrFromMiddleware(Psmart_Store p) { throw new NotImplementedException(); }
public int SaveShrFromMiddleware(Psmart_Store p) { return(_psmartStoreManager.SaveShr(p)); }