public IActionResult PostGetMetier(MetierModel model) { if (model is null) { throw new ArgumentNullException(nameof(model)); } // GetuserSelected(model); // GetAllLabel(model); // GetAllDomaine(model); return(Ok()); }
public async Task <IActionResult> PostBesoinFormation(MetierModel model) { if (model is null) { throw new ArgumentNullException(nameof(model)); } var metier = new MetierModel() { DomaineId = model.DomaineId, UserId = model.UserId, LabelId = model.LabelId, Niveau = model.Niveau, }; var result = await _context.Metiers.AddAsync(metier); _context.SaveChanges(); return(Ok(new { })); }