public static void Update(COA_AccountEditModel model, COA_Account entity, string userId)
 {
     entity.AccountName       = model.AccountName;
     entity.AccountCode       = model.AccountCode;
     entity.Description       = model.Description;
     entity.COA_AccountTypeId = model.COA_AccountTypeId;
 }
        public async Task EditAsync(COA_AccountEditModel model)
        {
            var account = await _repository.GetAsync(model.Id);

            ChartofaccountFactory.Update(model, account, _userId);
            _repository.Edit(account);
            await _unitOfWork.SaveChangesAsync();
        }