using System.ComponentModel.DataAnnotations;
using MyPortal.Database.Models.Entity;
using MyPortal.Logic.Models.Structures;

namespace MyPortal.Logic.Models.Data.Assessment
{
    public class ResultSetModel : LookupItemModel
    {
        public ResultSetModel(ResultSet model) : base(model)
        {
            Name = model.Name;
            Locked = model.Locked;
        }

        [Required] [StringLength(256)] public string Name { get; set; }

        public bool Locked { get; set; }
    }
}