public bool submitReviewerResponse(ReviewerResponseDTO reviewerResponse, long userID, long RoleID) { ReviewerResponse request = new ReviewerResponse(); ObjectMapper.Map(reviewerResponse, request); return(RaceRepository.submitReviewerResponse(request, userID, RoleID)); }
public JsonResponse <bool> submitReviewerResponse(ReviewerResponseDTO reviewerResponse, long userID, long RoleID) { JsonResponse <bool> response = new JsonResponse <bool>(); try { ExceptionEngine.AppExceptionManager.Process(() => { response.SingleResult = RaceBusinessInstance.submitReviewerResponse(reviewerResponse, userID, RoleID); response.IsSuccess = true; }, AspectEnums.ExceptionPolicyName.ServiceExceptionPolicy.ToString()); } catch (Exception ex) { response.Message = ex.Message; } return(response); //ReviewerResponseDTO response = new ReviewerResponseDTO(); //ObjectMapper.Map(reviewerResponse, response); //return ActivityRepository.submitReviewerResponse(response); }