예제 #1
0
        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);
        }
예제 #2
0
        /// <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);
        }
예제 #3
0
        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);
        }
예제 #4
0
        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);
        }
예제 #5
0
        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);
        }