Exemplo n.º 1
0
		public static DateTime? ToDateTime(IDateAndTime dateAndTime)
		{
			if (dateAndTime == null)
				return null;

			if (dateAndTime.IsEmpty())
				return null;

			return ToDateTime(dateAndTime.Date, dateAndTime.Hour, dateAndTime.Minute);
		}
        public static DateTime?ToDateTime(IDateAndTime dateAndTime)
        {
            if (dateAndTime == null)
            {
                return(null);
            }

            if (dateAndTime.IsEmpty())
            {
                return(null);
            }

            return(ToDateTime(dateAndTime.Date, dateAndTime.Hour, dateAndTime.Minute));
        }
Exemplo n.º 3
0
 public ArticleRepository()
 {
     _cmsEntities = new CMSEntities();
     _dateAndTime = new DateAndTimeTW();
 }
Exemplo n.º 4
0
 public CategoryRepository()
 {
     _cmsEntities = new CMSEntities();
     _dateAndTime = new DateAndTimeTW();
 }