public async Task <IActionResult> Register(RegisterRequestApiModel registerModel)
        {
            if (ModelState.IsValid)
            {
                var registerResult = await accountService.Register(registerModel);

                if (registerResult)
                {
                    return(Ok());
                }
            }

            return(BadRequest());
        }
        public async Task <bool> Register(RegisterRequestApiModel user)
        {
            var result = false;

            try
            {
                var userData  = Mapper.Map <RegisterRequestApiModel, RegisterUserDTO>(user);
                var dbCommand = new CreateUserCommand(dbContext, userData);
                result = await dbCommand.ExecuteAsync();
            }
            catch
            {
                // TODO: Add log here
            }

            return(result);
        }