Beispiel #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);
 }
Beispiel #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);
        }
Beispiel #3
0
        public static List <SekerCotert> GetSurveyByBuildingId(int buildingId)
        {
            return(SurveyConverter.ListToDTO(SurveyDAL.GetSurveyByBuildingId(buildingId)));

            //List<T> u = db.table.where(x => x.user = userid)
            //List<SekerCotert> x =
            //return  Converters.SurveyConverter.ListToDTO(SurveyDAL.GetSurveyByBuildingId(buildingId));
            //x.ForEach(y => y.UserStatus = u.Contains(y.SurveyHedearId.) ? true : false)

            //return x;
        }
Beispiel #4
0
        public static void UpdateCountAnswer(SekerPerut s)
        {
            //return  Converters.SurveyConverter.ToDTO(SurveyDAL.ChangeStatus(Converters.SurveyConverter.ToDAL(s)));

            SurveyDAL.UpdateCountAnswer(SurveyConverter.ToDAL(s));
        }
Beispiel #5
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));
        }