Frequently Used Methods
Frequently Used Methods
Frequently Used Methods
Frequently Used Methods
public IActionResult Create([FromBody] WaterMeter waterMeter) { if (ModelState.IsValid) { _monitor.AddMeter(waterMeter); return(CreatedAtAction(nameof(Get), new { id = waterMeter.Id }, waterMeter)); } return(BadRequest()); }