public async Task <IActionResult> Post([FromBody] AccountType value)
        {
            if (!ModelState.IsValid)
            {
                return(BadRequest(ModelState));
            }
            if (value.Code == null)
            {
                value.Code = await _sequenceRepository.GetCode("AccountType");
            }

            await _accounttypeRepository.InsertAsync(value);

            return(Created($"accounttype/{value.AccountTypeId}", value));
        }