Пример #1
0
 public static void AddNewSurvey(SekerCotert sekerCotert)
 {
     SurveyHedear surveyHedear   = SurveyConverter.ToDAL(sekerCotert);
     long         surveyHedearId = SurveyDAL.AddNewSurveyHeader(surveyHedear);
     //surveyHedear.SurveyDetails.ToList().ForEach(x => x.SurveyHedearId = surveyHedearId);
     //SurveyDAL.AddNewSurveyDetails(surveyHedear.SurveyDetails);
 }
Пример #2
0
        public static void RemoveSurvey(SekerCotert s)
        {
            // List<SekerPerut> ls = SurveyConverter.ToDTO(SurveyDAL.DeleteSurveyDetails(SurveyConverter.ToDAL(s)).ToList() .;

            SurveyDAL.DeleteSurvey(SurveyConverter.ToDAL(s));


            //user_notification_tbl u = UserNotificationDAL.GetByUsetIdAndNotificationId(n);
            //UserNotificationDAL.RemoveUserNotification(u);
        }
Пример #3
0
        public static void UpdateCountAnswer(SekerPerut s)
        {
            //return  Converters.SurveyConverter.ToDTO(SurveyDAL.ChangeStatus(Converters.SurveyConverter.ToDAL(s)));

            SurveyDAL.UpdateCountAnswer(SurveyConverter.ToDAL(s));
        }
Пример #4
0
        //public static List<Survey> GetAll()
        //{
        //    return Converters.SurveyConverter.ListToDTO(SurveyDAL.Get());
        //}
        //public static Survey GetById(int id)
        //{
        //    return Converters.SurveyConverter.ToDTO(SurveyDAL.GetById(id));
        //}

        public static void ChangeStatus(SekerCotert s)
        {
            //return  Converters.SurveyConverter.ToDTO(SurveyDAL.ChangeStatus(Converters.SurveyConverter.ToDAL(s)));

            SurveyDAL.ChangeStatus(SurveyConverter.ToDAL(s));
        }