public JsonResponse <SurveyAuditDTO> GetSurveyModulesList(long surveyResponseID, long userID, long RoleID) { JsonResponse <SurveyAuditDTO> response = new JsonResponse <SurveyAuditDTO>(); try { ExceptionEngine.AppExceptionManager.Process(() => { response.SingleResult = RaceBusinessInstance.GetSurveyModulesList(surveyResponseID); response.IsSuccess = true; }, AspectEnums.ExceptionPolicyName.ServiceExceptionPolicy.ToString()); } catch (Exception ex) { response.Message = ex.Message; } return(response); }
/// <summary> /// Method to login user into the application /// </summary> /// <param name="userName">user name</param> /// <param name="password">password</param> /// <returns>returns login status</returns> /// public JsonResponse <QCLoginResponseDTO> LoginWebUser(string userName, string password) { JsonResponse <QCLoginResponseDTO> response = new JsonResponse <QCLoginResponseDTO>(); try { ExceptionEngine.AppExceptionManager.Process(() => { response.SingleResult = RaceBusinessInstance.LoginWebUser(userName, password); response.IsSuccess = true; }, AspectEnums.ExceptionPolicyName.ServiceExceptionPolicy.ToString()); } catch (Exception ex) { response.Message = ex.Message; } return(response); }
public JsonResponse <ProductAuditSummaryDTO> GetProductAuditdata(ProductAuditDTO productAuditDTO, long userID, long RoleID) { JsonResponse <ProductAuditSummaryDTO> response = new JsonResponse <ProductAuditSummaryDTO>(); try { ExceptionEngine.AppExceptionManager.Process(() => { response.Result = RaceBusinessInstance.GetProductAuditdata(productAuditDTO); response.IsSuccess = true; }, AspectEnums.ExceptionPolicyName.ServiceExceptionPolicy.ToString()); } catch (Exception ex) { response.Message = ex.Message; } return(response); }
public JsonResponse <GeoDefinitionDTO> GetGeoDefinitions(long userID, long RoleID) { JsonResponse <GeoDefinitionDTO> response = new JsonResponse <GeoDefinitionDTO>(); try { ExceptionEngine.AppExceptionManager.Process(() => { response.Result = RaceBusinessInstance.GetGeoDefinitions(); response.IsSuccess = true; }, AspectEnums.ExceptionPolicyName.ServiceExceptionPolicy.ToString()); } catch (Exception ex) { response.Message = ex.Message; } return(response); }
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); }