Exemplo n.º 1
0
 public async Task <ApiResponse> Post([FromBody] TextDto text)
 => ModelState.IsValid ?
 await _textManager.Create(text) :
 new ApiResponse(Status400BadRequest, "Text Model is Invalid");