public IActionResult Post([FromBody, Required] ValueDto value) { try { value = _valueLogic.Add(value); return(CreatedAtAction("Get", new { id = value.Id }, value)); } catch (Exception) { return(BadRequest()); } }
public IActionResult Post([FromBody, Required] ValueDto value) { value = _valueLogic.Add(value); return(CreatedAtAction("Get", new { id = value.Id }, value)); }