public void RegisterShare(ShareRegistrationData shareData) { var newShare = new Share() { ShareType = shareData.ShareType, Price = shareData.SharePrice, }; shareRepository.Insert(newShare); shareRepository.SaveChanges(); }
public void RegisterShare(ShareRegistrationData shareData) { var newShare = new Share() { ShareType = shareData.ShareType, Price = shareData.SharePrice, }; shareRepository.Insert(newShare); shareRepository.SaveChanges(); }