using System;
using System.ComponentModel.DataAnnotations;

namespace OnlineAssessment.Domain.ViewModels
{
    public class SubCategory
    {
        public int Id { get; set; }
        public string Name { get; set; }
        public string Description { get; set; }
        //public int CategoryId { get; set; }
        public byte[] Photo { get; set; }
        public DateTime? CreatedOn { get; set; }
        public DateTime? UpdatedOn { get; set; }
        public bool? IsActive { get; set; }
        public int CategoryId { get; set; }

    }

    public class SubCategoryViewModel
    {
        public int Id { get; set; }
        public string Name { get; set; }
        public string Description { get; set; }
        public string Photo { get; set; }
        public bool? IsActive { get; set; }
    }

    public class SubCategoryAddModel
    {

        public string Name { get; set; }
        public string Description { get; set; }
        public string Photo { get; set; }
    }

    public class SubCategoryEditModel : SubCategoryAddModel
    {
        [Required]
        public int Id { get; set; }

    }
}
