Beispiel #1
0
        public async Task <IActionResult> AddCandidateCategory([FromBody] CandidateCategoryVM model)
        {
            var result = await _candidateManager.AddCandidateToCategory(model.CandidateId, model.CategoryId);

            return(new ContentActionResult <string>(result ? HttpStatusCode.OK : HttpStatusCode.BadRequest, result.ToString(), result ? "OK" : "BadRequest", Request));
        }