public IActionResult CreateClasses([FromBody] RequestCreateSkill _skill) { Skill entity; if (ModelState.IsValid) { entity = _skillServices.CreateSkill(_skill); _skillServices.Commit(); return(Created($"api/skills/{entity.Id}", _skill)); } else { return(BadRequest()); } }
public Skill CreateNewSkill([FromBody] Skill Skill) { return(skillServices.CreateSkill(Skill)); }