﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace Admin.Models
{
    public class Advertisement
    {
        [HiddenInput(DisplayValue = false)]
        [DataType(DataType.Text)]
        [Display(Name = "Número")]
        public int advertisementNumber { get; set; }
        [DataType(DataType.Text)]
        [Display(Name = "Título")]
        public string advertisementTitle { get; set; }
        [DataType(DataType.MultilineText)]
        [Display(Name = "Información")]
        public string advertisementInformation { get; set; }
        [DataType(DataType.Text)]
        [Display(Name = "URL")]
        public string advertisementURL { get; set; }
        [DataType(DataType.Text)]
        [Display(Name = "Banner")]
        public string advertisementBanner { get; set; }
        [DataType(DataType.Date)]
        [Display(Name = "Fecha Inicio")]
        [DisplayFormat(DataFormatString = "{0:yyyy-MM-dd}", ApplyFormatInEditMode = true)]
        public System.DateTime advertisementBeginDate { get; set; }
        [DataType(DataType.Date)]
        [Display(Name = "Fecha Fin")]
        [DisplayFormat(DataFormatString = "{0:yyyy-MM-dd}", ApplyFormatInEditMode = true)]
        public System.DateTime advertisementEndDate { get; set; }
    }
}