public ActionResult <AccountDTO> CheckUserNameExist([FromQuery] string Username) { var account = _accountsRepository.CheckUserNameExist(Username); return(Ok(_mapper.Map <AccountDTO>(account))); }