public IActionResult Post([FromForm] Candidate candidate) { _database.Add(candidate); return(StatusCode(201)); }
protected Task Add(T element) { _database.Add(element); return(Task.CompletedTask); }