Esempio n. 1
0
 public IActionResult Post([FromBody] string path)
 {
     if (ModelState.IsValid)
     {
         var questionObj = repository.AddQuestionsFromExcel();
         if (questionObj == null)
         {
             return(BadRequest("Input value is invalid"));
         }
         else
         {
             return(Created("sme", questionObj));
         }
     }
     return(BadRequest());
 }