public async Task <IActionResult> Delete([FromRoute] int id)
        {
            if (!ModelState.IsValid)
            {
                return(BadRequest(ModelState));
            }

            var accounttype = await _accounttypeRepository.DeleteAsync(id);

            return(Ok(accounttype));
        }