public IActionResult Get([FromBody] AuditType auditType) { Checklist obj = new Checklist(); var list = obj.GetQuestions(auditType); if (list != null) { return(Ok(list)); } return(Ok("Wrong Input")); }
public List <Questions> QuestionsProvider(AuditType type) { var list = obj.GetQuestions(type); if (list != null) { return(list); } else { return(null); } }