public RegisterNewProfileCommand(RegisterNewProfileDto userProfile) { userProfile.NotNull(); UserProfile = userProfile; }
public async Task <bool> Post([FromBody] RegisterNewProfileDto registerProfileModel) { return(await _mediator.Send(new RegisterNewProfileCommand(registerProfileModel))); }
public async Task RegisterNewProfile(RegisterNewProfileDto registerProfileDto) { await _userProfilesApi.RegisterAsync(registerProfileDto); }