public void Post(AssessmentResponse response) { AssessmentBus business; try { business = new AssessmentBus(); business.UpdateResponse(response); } catch (Exception ex) { throw new Exception("MSI.CCAT.API.Controller.AssessmentController:" + ex.Message); } }
public AssessmentResponse UpdateResponse(AssessmentResponse assessmentResponse) { ResponseBus responseBus; Tbl_QuestionResponse response = null; try { responseBus = new ResponseBus(); response = responseBus.UpdateResponse(assessmentResponse.UserId, assessmentResponse.Response, assessmentResponse.ResponseId); } catch (Exception ex) { throw ex; } return assessmentResponse; }