public async Task AddValueAsync(string content) { var value = new Value { Content = content, Active = true }; await _valueRepository.AddValueAsync(value); }
public async Task <IActionResult> AddValue([FromBody] Value value) { await _repo.AddValueAsync(value); return(StatusCode(201)); }