public static DAL.TypeMeeting GetTypeMeeting(DTO.NewFolder1.TypeMeeting typemeetingdto) { if (typemeetingdto == null) { return(null); } DAL.TypeMeeting type = new DAL.TypeMeeting() { MeetingId = typemeetingdto.MeetingId, description = typemeetingdto.description, Dairy = NewFolder1.Dairy.GetListDairyDAL(typemeetingdto.Dairy as List <Dairy>) }; return(type); }
public static TypeMeeting GetTypeMeeting(DAL.TypeMeeting t) { if (t == null) { return(null); } TypeMeeting dto = new TypeMeeting() { MeetingId = t.MeetingId, description = t.description, Dairy = NewFolder1.Dairy.GetListDairyDTO(t.Dairy as List <DAL.Dairy>) }; return(dto); }