/// <summary>
        /// Repository method to add new Investor
        /// </summary>
        /// <param name="investorDetails"></param>
        public void AddInvestor(InvestorDetails investorDetails)
        {
            // Add Investor
            this.investorEntity.Add(investorDetails);

            // Save changes to DB
            this._context.SaveChanges();
        }
Exemplo n.º 2
0
 /// <summary>
 /// Business method to add new Investor
 /// </summary>
 /// <param name="investorDetails">Investor details</param>
 public void AddInvestor(InvestorDetails investorDetails)
 {
     try
     {
         // Call method to add Investor
         this._investorRepository.AddInvestor(investorDetails);
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }