Пример #1
0
 public IActionResult PostGetMetier(MetierModel model)
 {
     if (model is null)
     {
         throw new ArgumentNullException(nameof(model));
     }
     //  GetuserSelected(model);
     //   GetAllLabel(model);
     //  GetAllDomaine(model);
     return(Ok());
 }
Пример #2
0
        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 { }));
        }