Exemple #1
0
 public async Task <bool> IsValidMonth(WithdrawFeeModel currentFee)
 {
     try
     {
         var rangeMonthDto = _mapper.Map <WithdrawalFee>(currentFee);
         return(await _withdrawFeeManager.ValidRangeMonth(rangeMonthDto));
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Exemple #2
0
        public async Task <WithdrawFeeModel> AddConfiguration(WithdrawFeeModel withdrawFee)
        {
            try
            {
                var model      = _mapper.Map <WithdrawalFee>(withdrawFee);
                var addedModel = await _withdrawFeeManager.AddConfiguration(model);

                var savedModel = _mapper.Map <WithdrawFeeModel>(addedModel);
                return(savedModel);
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
        public async Task <IActionResult> Add(WithdrawFeeModel data)
        {
            await _withdrawFeeService.AddConfiguration(data);

            return(RedirectToAction(nameof(WithdrawFeeController.Index)));
        }