示例#1
0
 public IActionResult GetAuditCheckListQuestions([FromBody] string auditType)
 {
     if (string.IsNullOrEmpty(auditType))
     {
         return(BadRequest("No Input"));
     }
     else if ((auditType != "Internal") && (auditType != "SOX"))
     {
         return(Ok("Wrong Input"));
     }
     else
     {
         try
         {
             List <Questions> list = checklistServiceObj.GetQuestionList(auditType);
             return(Ok(list));
         }
         catch (Exception e)
         {
             return(StatusCode(500));
         }
     }
 }