public async Task <IHttpActionResult> Post([FromBody] GeolocationViewModel viewModel) { if (!ModelState.IsValid) { return(BadRequest(ModelState)); } var result = await geolocationService.AddGeolocationAsync(viewModel); return(Ok(result)); }
public async Task <IHttpActionResult> Post([FromBody] GeolocationViewModel viewModel) { if (!ModelState.IsValid) { return(BadRequest(ModelState)); } var result = await geolocationService.AddGeolocationAsync(viewModel); return(Ok(result)); }