public Port_Acq Post(Port_Acq inPortfolio) { Port_Acq portfolioToSave = null; PortAcqRepository repository = null; try { repository = new PortAcqRepository(); portfolioToSave = repository.GetById(inPortfolio.Portfolio_); portfolioToSave.Company = inPortfolio.Company; portfolioToSave.Cut_OffDate = inPortfolio.Cut_OffDate; portfolioToSave.ClosingDate = inPortfolio.ClosingDate; portfolioToSave.Lender_FileDescription = inPortfolio.Lender_FileDescription; portfolioToSave.Seller = inPortfolio.Seller; portfolioToSave.CostBasis = inPortfolio.CostBasis; portfolioToSave.Face = inPortfolio.Face; portfolioToSave.C_ofAccts = inPortfolio.C_ofAccts; portfolioToSave.PutbackDeadline = inPortfolio.PutbackDeadline; portfolioToSave.PutbackTerm__days_ = inPortfolio.PutbackTerm__days_; portfolioToSave.PurchasePrice = inPortfolio.PurchasePrice; repository.Update(portfolioToSave); } catch (Exception ex) { } return portfolioToSave; }
public Port_Acq Get(string portfolioNumber) { Port_Acq portfolio = null; PortAcqRepository repository = null; try { repository = new PortAcqRepository(); portfolio = repository.GetById(portfolioNumber); } catch (Exception ex) { } return portfolio; }