private async Task UpdateStoreManagerAsync(StoreManagerEditDto input)
        {
            var entity = await _storeManagerRepository.GetAsync(input.Id.Value);

            //double aa = Convert.ToDouble(entity.CurrentAmount);
            //double bb = Convert.ToDouble(entity.MaterielMoney);
            //entity.CountMoney = aa * bb;
            await _storeManagerRepository.UpdateAsync(input.MapTo(entity));
        }
Exemple #2
0
 public CreateOrUpdateStoreManagerViewModel(StoreManagerEditDto output)
 {
     output.MapTo(this);
 }
 private async Task CreateStoreManagerAsync(StoreManagerEditDto input)
 {
     var aa = input.MapTo <StoreManager>();
     await _storeManagerRepository.InsertAsync(aa);
 }