/// <summary> /// Adds a offering transaction. /// </summary> /// <param name="transaction">The dto with details to save.</param> /// <returns>A offering transaction dto object after saving.</returns> public OfferingTransactionDto AddOfferingTransaction(OfferingTransactionDto transaction) { var entity = mapper.ToEntity(transaction); offeringTransactionRepo.Insert(entity); return(transaction.ToObject(entity)); }