using System;
using System.ComponentModel.DataAnnotations;

namespace OnlineAssessment.Domain.ViewModels
{
    public class CategoryViewModel
    {
        public int id { get; set; }
        public string slug { get; set; }
        public string name { get; set; }
        public DateTime last_updated { get; set; }
        public bool? isActive { get; set; }
    }

    public class CategoryAddModel
    {
        [Required]
        [StringLength(500)]
        public string name { get; set; }
    }

    public class CategoryEditModel
    {
        [Required]
        [StringLength(500)]
        public string name { get; set; }
    }
}
