/// <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(); }
/// <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; } }