//[WebGet(ResponseFormat = WebMessageFormat.Json, RequestFormat = WebMessageFormat.Json)] public bool SavePOEResult(List <SavePOEResultRequest> request) { // var loggedInUser = UserData.GetCurrentUser(); try { FeedbackBL feedbackBl = new FeedbackBL(); int index = 0; foreach (var req in request) { // req.LoggedInUserName = loggedInUser.UserName; //req.LoggedInUserId = loggedInUser.UserId; feedbackBl.SaveResult(req, request.Count, index); index++; } return(true); } catch (Exception e) { WebOperationContext.Current.OutgoingResponse.StatusCode = HttpStatusCode.PreconditionFailed; WebOperationContext.Current.OutgoingResponse.StatusDescription = e.Message; } return(true); }
// GET: Feedbacks/Details/5 public ActionResult DetailsFeedback(int id) { FeedbackEntity feedback = FeedbackBL.SearchFeedbackBL(id); if (feedback == null) { return(HttpNotFound()); } return(View(feedback)); }
public ActionResult GiveFeedback(FeedbackEntity feedback) { bool isAdded = FeedbackBL.GiveFeedbackBL(feedback); if (isAdded) { string url = string.Format("/Movies/ListAllMovies"); return(Redirect(url)); } else { return(View(feedback)); } }
public void UpdateFeedbackNotes(int Feedbackid, string subject, string notes, int Questionid) { try { FeedbackBL feedbackBl = new FeedbackBL(); feedbackBl.UpdateFeedbackNotes(Feedbackid, subject, notes, Questionid); } catch (Exception e) { WebOperationContext.Current.OutgoingResponse.StatusCode = HttpStatusCode.PreconditionFailed; WebOperationContext.Current.OutgoingResponse.StatusDescription = e.Message; BusinessLogic.Common.Common common = new BusinessLogic.Common.Common(); common.CreateErrorLog(0, "UpdateFeedbackNotes", e.Message, 0); } }
public void InsertUpdateUSerRating(int Userid, int Questionid, int Userrating, int feedbackid, int poeId) { try { FeedbackBL feedbackBl = new FeedbackBL(); feedbackBl.InsertUpdateUSerRating(Userid, Questionid, Userrating, feedbackid, poeId); } catch (Exception e) { WebOperationContext.Current.OutgoingResponse.StatusCode = HttpStatusCode.PreconditionFailed; WebOperationContext.Current.OutgoingResponse.StatusDescription = e.Message; BusinessLogic.Common.Common common = new BusinessLogic.Common.Common(); common.CreateErrorLog(Userid, "InsertUpdateUSerRating", e.Message, 0); } }
//[WebGet(ResponseFormat = WebMessageFormat.Json, RequestFormat = WebMessageFormat.Json)] public List <CreatedFeedback> CreateFeedback(NewFeedbackRequest request) { try { FeedbackBL feedbackBl = new FeedbackBL(); return(feedbackBl.CreateFeedback(request)); } catch (Exception e) { WebOperationContext.Current.OutgoingResponse.StatusCode = HttpStatusCode.PreconditionFailed; WebOperationContext.Current.OutgoingResponse.StatusDescription = e.Message; } return(null); }
public int GetUserRatingByPoeIdUpdated(int Userid, int Poeid) { try { FeedbackBL feedbackBl = new FeedbackBL(); return(feedbackBl.GetUserRatingByPoeIdUpdated(Userid, Poeid)); } catch (Exception e) { WebOperationContext.Current.OutgoingResponse.StatusCode = HttpStatusCode.PreconditionFailed; WebOperationContext.Current.OutgoingResponse.StatusDescription = e.Message; BusinessLogic.Common.Common common = new BusinessLogic.Common.Common(); common.CreateErrorLog(Userid, "GetUserRatingByPoeIdUpdated", e.Message, 0); } return(0); }
public void SaveSurveyResult(int feedbackId, int questionId, string answer, int poeid, int subQuestionId, int userid, bool isSubQuestion) { try { FeedbackBL survey = new FeedbackBL(); survey.SaveSurveyResult(feedbackId, questionId, answer, poeid, subQuestionId, userid, isSubQuestion); } catch (Exception e) { WebOperationContext.Current.OutgoingResponse.StatusCode = HttpStatusCode.PreconditionFailed; WebOperationContext.Current.OutgoingResponse.StatusDescription = e.Message; BusinessLogic.Common.Common common = new BusinessLogic.Common.Common(); common.CreateErrorLog(userid, "SaveSurveyResult", e.Message, 0); } // return null; }
public List <UserPOEMapping> GetTopMembers(string domain, int poeid, string userid) { try { FeedbackBL feedbackBl = new FeedbackBL(); return(feedbackBl.GetTopMembers(domain, poeid, userid)); } catch (Exception e) { WebOperationContext.Current.OutgoingResponse.StatusCode = HttpStatusCode.PreconditionFailed; WebOperationContext.Current.OutgoingResponse.StatusDescription = e.Message; BusinessLogic.Common.Common common = new BusinessLogic.Common.Common(); common.CreateErrorLog(0, "GetTopMembers", e.Message, 0); } return(null); }
public List <UserSurvey> GetUserSurvey(int userId, int poeId) { try { FeedbackBL feedback = new FeedbackBL(); return(feedback.GetUserSurvey(userId, poeId)); } catch (Exception e) { WebOperationContext.Current.OutgoingResponse.StatusCode = HttpStatusCode.PreconditionFailed; WebOperationContext.Current.OutgoingResponse.StatusDescription = e.Message; BusinessLogic.Common.Common common = new BusinessLogic.Common.Common(); common.CreateErrorLog(userId, "GetUserSurvey", e.Message, 0); } return(null); }
public List <Question> GetFbExperienceQuestions() { try { FeedbackBL feedbackBl = new FeedbackBL(); return(feedbackBl.GetFbExperienceQuestions()); } catch (Exception e) { WebOperationContext.Current.OutgoingResponse.StatusCode = HttpStatusCode.PreconditionFailed; WebOperationContext.Current.OutgoingResponse.StatusDescription = e.Message; BusinessLogic.Common.Common common = new BusinessLogic.Common.Common(); common.CreateErrorLog(0, "GetFbExperienceQuestions", e.Message, 0); } return(null); }
public DataDumbScore GetCapabilityModuleScores(string feedbackid, int poeid) { try { FeedbackBL feedbackBl = new FeedbackBL(); return(feedbackBl.GetCapabilityModuleScores(feedbackid, poeid)); } catch (Exception e) { WebOperationContext.Current.OutgoingResponse.StatusCode = HttpStatusCode.PreconditionFailed; WebOperationContext.Current.OutgoingResponse.StatusDescription = e.Message; BusinessLogic.Common.Common common = new BusinessLogic.Common.Common(); common.CreateErrorLog(0, "GetCapabilityModuleScores", e.Message, 0); } return(null); }
public List <CreatedFeedback> GetFeedbacksByGroupId(string groupid) { try { FeedbackBL feedbackBl = new FeedbackBL(); return(feedbackBl.GetFeedbacksByGroupId(groupid)); } catch (Exception e) { WebOperationContext.Current.OutgoingResponse.StatusCode = HttpStatusCode.PreconditionFailed; WebOperationContext.Current.OutgoingResponse.StatusDescription = e.Message; BusinessLogic.Common.Common common = new BusinessLogic.Common.Common(); common.CreateErrorLog(0, "GetFeedbacksByGroupId", e.Message, 0); } return(null); }
public bool UpdateFeedbackStatus(SavePOEResultRequest request) { try { FeedbackBL feedbackBl = new FeedbackBL(); feedbackBl.UpdateFeedbackStatus(request.FeedbackId, request.FeedbackStatus, request.Initials); return(true); } catch (Exception e) { WebOperationContext.Current.OutgoingResponse.StatusCode = HttpStatusCode.PreconditionFailed; WebOperationContext.Current.OutgoingResponse.StatusDescription = e.Message; BusinessLogic.Common.Common common = new BusinessLogic.Common.Common(); common.CreateErrorLog(0, "UpdateFeedbackStatus", e.Message, 0); } return(true); }
public List <CreatedFeedback> CreateFeedback(NewFeedbackRequest request) { try { FeedbackBL feedbackBl = new FeedbackBL(); return(feedbackBl.CreateFeedback(request)); } catch (Exception e) { WebOperationContext.Current.OutgoingResponse.StatusCode = HttpStatusCode.PreconditionFailed; WebOperationContext.Current.OutgoingResponse.StatusDescription = e.Message; BusinessLogic.Common.Common common = new BusinessLogic.Common.Common(); common.CreateErrorLog(0, "CreateFeedback", e.Message, 0); } return(null); }
public List <UserFeedback> GetTeamReportDumb(int feedbacktype, int poeid) { try { FeedbackBL feedbackBl = new FeedbackBL(); return(feedbackBl.GetTeamMberDumb(feedbacktype, poeid)); } catch (Exception e) { WebOperationContext.Current.OutgoingResponse.StatusCode = HttpStatusCode.PreconditionFailed; WebOperationContext.Current.OutgoingResponse.StatusDescription = e.Message; BusinessLogic.Common.Common common = new BusinessLogic.Common.Common(); common.CreateErrorLog(0, "GetTeamReportDumb", e.Message, 0); } return(null); }
public int GetFeedbackReceivedCount(int userId, int subscriptionid, int poeId) { try { // UserAdmin userAdmin = new UserAdmin(); // return userAdmin.GetReceivedFeedback(userId, poeId, subscriptionid); FeedbackBL feedbackBl = new FeedbackBL(); return(feedbackBl.GetFeedbackRecevied(userId, subscriptionid, poeId).Count); } catch (Exception e) { WebOperationContext.Current.OutgoingResponse.StatusCode = HttpStatusCode.PreconditionFailed; WebOperationContext.Current.OutgoingResponse.StatusDescription = e.Message; BusinessLogic.Common.Common common = new BusinessLogic.Common.Common(); common.CreateErrorLog(userId, "GetFeedbackReceivedCount", e.Message, 0); } return(0); }
public void InsertFbExperience(List <SavePOEResultRequest> requests) { try { FeedbackBL feedbackBl = new FeedbackBL(); foreach (var req in requests) { feedbackBl.InsertFbExperience(req.UserId, req.FeedbackId, req.QuestionId, req.Answer); } } catch (Exception e) { WebOperationContext.Current.OutgoingResponse.StatusCode = HttpStatusCode.PreconditionFailed; WebOperationContext.Current.OutgoingResponse.StatusDescription = e.Message; BusinessLogic.Common.Common common = new BusinessLogic.Common.Common(); common.CreateErrorLog(0, "InsertFbExperience", e.Message, 0); } }
public int CheckAnswers(int feedbackid) { try { FeedbackBL feedbackBl = new FeedbackBL(); return(feedbackBl.CheckAnswers(feedbackid)); // UserAdmin userAdmin = new UserAdmin(); //return userAdmin.GetGivenFeedBackCount(userId, poeId, subscriptionid); } catch (Exception e) { WebOperationContext.Current.OutgoingResponse.StatusCode = HttpStatusCode.PreconditionFailed; WebOperationContext.Current.OutgoingResponse.StatusDescription = e.Message; BusinessLogic.Common.Common common = new BusinessLogic.Common.Common(); common.CreateErrorLog(0, "CheckAnswers", e.Message, 0); } return(0); }
public bool SaveDemographicResult(int userid, int poeid, int QuestionId, int feedbackid, string answer) { try { FeedbackBL feedbackBl = new FeedbackBL(); feedbackBl.InsertUpdateUserDemographic(userid, poeid, QuestionId, feedbackid, answer); return(true); } catch (Exception e) { WebOperationContext.Current.OutgoingResponse.StatusCode = HttpStatusCode.PreconditionFailed; WebOperationContext.Current.OutgoingResponse.StatusDescription = e.Message; BusinessLogic.Common.Common common = new BusinessLogic.Common.Common(); common.CreateErrorLog(userid, "SaveDemographicResult", e.Message, 0); } return(true); }
public bool SavePOEResult(List <SavePOEResultRequest> request) { try { FeedbackBL feedbackBl = new FeedbackBL(); int index = 0; foreach (var req in request) { feedbackBl.SaveResult(req, request.Count, index); index++; } return(true); } catch (Exception e) { WebOperationContext.Current.OutgoingResponse.StatusCode = HttpStatusCode.PreconditionFailed; WebOperationContext.Current.OutgoingResponse.StatusDescription = e.Message; BusinessLogic.Common.Common common = new BusinessLogic.Common.Common(); common.CreateErrorLog(0, "SavePOEResult", e.Message, 0); } return(true); }
//Feedback Methods // GET: Feedbacks public ActionResult IndexFeedback() { List <FeedbackEntityNew> feedbacks = FeedbackBL.ViewAllFeedbackBL(); return(View(feedbacks)); }