Beispiel #1
0
 public void UpdateUserLastLogin(int id)
 {
     try
     {
         BusinessLogic.Authentiation.AuthentiationBO authentiation = new AuthentiationBO();
         authentiation.UpdateUserLastLogin(id);
     }
     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, "UpdateUserLastLogin", e.Message, 0);
     }
 }
Beispiel #2
0
 public void DeleteSubscribedPoe(int Poeid, int subid)
 {
     try
     {
         SignUp signup = new SignUp();
         signup.DeleteSubscribedPoe(Poeid, subid);
     }
     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, "DeleteSubscribedPoe", 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);
     }
 }
 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 UserPOEMapping GetUserdetailsByMappingId(int mappingid)
 {
     try
     {
         BusinessLogic.Common.Common common = new BusinessLogic.Common.Common();
         return(common.GetUserDetailsByMappingId(mappingid));
     }
     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, "GetUserdetailsByMappingId", e.Message, 0);
     }
     return(null);
 }
 public List <Module> GetSurveyQuestions(int poeid)
 {
     try
     {
         POEBL pobl = new POEBL();
         return(pobl.GetSurveyModules(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, "GetSurveyQuestions", e.Message, 0);
     }
     return(null);
 }
 public string GetModuleKeyAction(int poeid, int moduleId)
 {
     try
     {
         POEBL pobl = new POEBL();
         return(pobl.GetModuleKeyAction(poeid, moduleId));
     }
     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, "GetModuleKeyAction", e.Message, 0);
     }
     return(null);
 }
Beispiel #8
0
 public void UpdateAcessToken(string emailid, string accestoken)
 {
     try
     {
         //SignUp userMail = new SignUp();
         BusinessLogic.SignUp.SignUp signUp = new BusinessLogic.SignUp.SignUp();
         signUp.UpdateAcessToken(emailid, accestoken);
     }
     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, "UpdateAcessToken", e.Message, 0);
     }
 }
Beispiel #9
0
 public List <Util.Domain.POE> GetSubscribedPoesList(int userid, int subId)
 {
     try
     {
         BusinessLogic.Common.Common common = new BusinessLogic.Common.Common();
         return(common.GetSubscribedPoesList(userid, subId));
     }
     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, "GetSubscribedPoesList", e.Message, 0);
     }
     return(null);
 }
Beispiel #10
0
 public List <Util.Domain.POE> GetAllPoEs()
 {
     try
     {
         BusinessLogic.Common.Common common = new BusinessLogic.Common.Common();
         return(common.GetAllPoEs());
     }
     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, "GetAllPoEs", e.Message, 0);
     }
     return(null);
 }
Beispiel #11
0
 public Network GetNetworkById(int networkId)
 {
     try
     {
         BusinessLogic.SignUp.SignUp signUp = new BusinessLogic.SignUp.SignUp();
         return(signUp.GetNetworkById(networkId));
     }
     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, "GetNetworkById", e.Message, 0);
     }
     return(null);
 }
Beispiel #12
0
 public List <UserPOEMapping> GetMyAllUsers(int userId, int subscriptionid)
 {
     try
     {
         BusinessLogic.Common.Common common = new BusinessLogic.Common.Common();
         return(common.GetMyAllUsers(userId, 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(userId, "GetMyAllUsers", e.Message, 0);
     }
     return(null);
 }
 public int GetQuestionCount(int poeid, int type)
 {
     try
     {
         POEBL pobl = new POEBL();
         return(pobl.GetQuestionCount(poeid, type));
     }
     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, "GetQuestionCount", e.Message, 0);
     }
     return(0);
 }
 public bool GetPoEResultMode(int userId, int poeId)
 {
     try
     {
         POEBL feedback = new POEBL();
         return(feedback.GetPoEResultMode(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, "GetPoEResultMode", e.Message, 0);
     }
     return(false);
 }
Beispiel #15
0
 public Password AuthenticateUserWithUserName(string userName)
 {
     try
     {
         BusinessLogic.Authentiation.AuthentiationBO authentiation = new AuthentiationBO();
         return(authentiation.AuthenticateUser(userName));
     }
     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, "AuthenticateUserWithUserName", 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 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 <Goals> GetModuleQuestions(int UserId, int PoeId)
 {
     try
     {
         GoalDataAccess goal = new GoalDataAccess();
         return(goal.GetModuleQuestions(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, "GetModuleQuestions", 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 List <MentorDetail> GetPathfindersIds(int userId, int poeId, int type)
 {
     try
     {
         DashboardDataAccess dashboardda = new DashboardDataAccess();
         return(dashboardda.GetPathfinderDetails(userId, poeId, type));
     }
     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, "GetPathfindersIds", e.Message, 0);
     }
     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 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 <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);
        }
Beispiel #24
0
 public bool AssignPoeRecord(SignupRequest assignPoes)
 {
     try
     {
         SignUp signup = new SignUp();
         signup.AssignPoe(assignPoes);
         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, "AssignPoeRecord", e.Message, 0);
     }
     return(false);
 }
Beispiel #25
0
 public bool UpdateUserPhoto(SignupRequest sr)
 {
     try
     {
         BusinessLogic.UserAdmin.UserAdmin userAdmin = new BusinessLogic.UserAdmin.UserAdmin();
         userAdmin.UpdateUserPhoto(sr.User.UserId, sr.User.Photo);
         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, "UpdateUserPhoto", e.Message, 0);
     }
     return(false);
 }
        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 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);
 }
Beispiel #30
0
 public bool CheckEmailId(string EmailId)
 {
     try
     {
         //SignUp userMail = new SignUp();
         BusinessLogic.SignUp.SignUp signUp = new BusinessLogic.SignUp.SignUp();
         return(signUp.CheckEmailId(EmailId));
     }
     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, "CheckEmailId", e.Message, 0);
     }
     return(false);
 }