public async Task <ActionResult <GeekProfileResponse> > RegisterProfileAsync([FromBody] CreateGeekProfileModel model)
        {
            var query  = new RegisterProfileCommand(model);
            var result = await this.mediator.Send(query);

            if (result.IsFailed)
            {
                return(this.UnprocessableEntity(result));
            }

            var profile = new GetProfileByIdQuery(result.Value);

            return(this.CreatedAtRoute(nameof(GetProfile), new { result.Value }, profile));
        }
 public RegisterProfileCommand(CreateGeekProfileModel profile) => this.Profile = profile;