public ActionResult <District> Create(District district) { _districtService.Create(district); return(CreatedAtRoute("GetDistrict", new { id = district.dID.ToString() }, district)); }
public District Post([FromBody] District district) { return(_service.Create(district)); }