예제 #1
0
        //[AbpAuthorize(AppPermissions.Pages_MobileTransactions_Create)]
        protected virtual async Task Create(CreateOrEditMobileTransactionDto input)
        {
            var mobileTransaction = ObjectMapper.Map <MobileTransaction>(input);



            await _mobileTransactionRepository.InsertAsync(mobileTransaction);
        }
예제 #2
0
 public async Task CreateOrEdit(CreateOrEditMobileTransactionDto input)
 {
     if (input.Id == null)
     {
         await Create(input);
     }
     else
     {
         await Update(input);
     }
 }
예제 #3
0
        //[AbpAuthorize(AppPermissions.Pages_MobileTransactions_Edit)]
        protected virtual async Task Update(CreateOrEditMobileTransactionDto input)
        {
            var mobileTransaction = await _mobileTransactionRepository.FirstOrDefaultAsync((int)input.Id);

            ObjectMapper.Map(input, mobileTransaction);
        }