public CustomResponse AddQuestionOptions(List <QuestionOptions> Options) { CustomResponse response = new CustomResponse(); try { QuestionRepo rep = new QuestionRepo(); var list = rep.SaveQuestionOptions(Options); if (list != null) { response.Success = true; response.Message = "Options saved successfully"; } } catch (Exception ex) { response.Success = false; response.Message = "Error occured while saving question options"; } return(response); }