public async Task CreateOrEdit(CreateOrEditCruisePricesDto input)
 {
     if (input.Id == null)
     {
         await Create(input);
     }
     else
     {
         await Update(input);
     }
 }
        private async Task Create(CreateOrEditCruisePricesDto input)
        {
            var cruisePrices = ObjectMapper.Map <CruisePrice>(input);


            if (AbpSession.TenantId != null)
            {
                cruisePrices.TenantId = (int?)AbpSession.TenantId;
            }


            await _cruisePricesRepository.InsertAsync(cruisePrices);
        }
        private async Task Update(CreateOrEditCruisePricesDto input)
        {
            var cruisePrices = await _cruisePricesRepository.FirstOrDefaultAsync((int)input.Id);

            ObjectMapper.Map(input, cruisePrices);
        }