public ResponseData <object> DeleteQuestionType(DeleteQuestionType deleteQuestionType) { ResponseData <object> resp = new ResponseData <object>(); QuestionTypeFacade fac = new QuestionTypeFacade(); try { fac.Delete(deleteQuestionType); } catch (Exception ex) { ExceptionHandlerFactory.Factory.GetResponseExceptionHandler(resp).Handle(ex); } return(resp); }
public ResponseData <int> SaveQuestionType(SaveQuestionType saveQuestionType) { ResponseData <int> resp = new ResponseData <int>(); QuestionTypeFacade facade = new QuestionTypeFacade(); try { resp.Data = facade.Save(saveQuestionType); } catch (Exception ex) { ExceptionHandlerFactory.Factory.GetResponseExceptionHandler(resp).Handle(ex); } return(resp); }