public IActionResult RegisterAsync([FromBody] RiskRegistration registration) { var ping = new InfectionPing(registration); _dataService.Pings.AddAsync(ping); return(Created("/", registration)); }
public InfectionPing(RiskRegistration registration) { Location = new Point(registration.RiskArea.Longitude, registration.RiskArea.Latitude) { SRID = 4326 }; Severity = registration.Severity; Created = registration.Created; }