public async Task <IActionResult> Add([FromBody] LocationProviderConfiguration config)
 {
     return(await AddProvider(User.GetId(), config));
 }
 public async Task <IActionResult> Add([FromBody] LocationProviderConfiguration config, string userId)
 {
     return(await AddProvider(userId, config));
 }
 private async Task <IActionResult> AddProvider(string userId, LocationProviderConfiguration config)
 {
     return(Ok(await locationProviderService.AddProvider(userId, config)));
 }