Example #1
0
 public async Task AddValueAsync(string content)
 {
     var value = new Value {
         Content = content, Active = true
     };
     await _valueRepository.AddValueAsync(value);
 }
Example #2
0
        public async Task <IActionResult> AddValue([FromBody] Value value)
        {
            await _repo.AddValueAsync(value);

            return(StatusCode(201));
        }