public IActionResult Post([FromBody] SiteDTO site) { if (!ModelState.IsValid) { return(BadRequest()); } var newCar = _siteService.AddNewSite(site); return(CreatedAtAction("Get", new { id = newCar.SiteId }, newCar)); }
public IActionResult Post([FromBody] SiteDTO site) { if (!ModelState.IsValid) { return(BadRequest()); } var newCar = _siteService.AddNewSite(site); return(CreatedAtAction("Get", new { id = newCar.SiteId }, newCar)); }