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); }
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); }
public static void UpdateCountAnswer(SekerPerut s) { //return Converters.SurveyConverter.ToDTO(SurveyDAL.ChangeStatus(Converters.SurveyConverter.ToDAL(s))); SurveyDAL.UpdateCountAnswer(SurveyConverter.ToDAL(s)); }
//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)); }