using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using Siger.Middlelayer.Repository.Request;

namespace Siger.Middlelayer.TlmRepository.Request
{
    public class RequestAddParameter
    {
        [Required(ErrorMessage = "NameIsEmpty")]
        public string  name { get; set; }

        public string module { get; set; }

        public string type { get; set; }

        public string unit { get; set; }

        public string category { get; set; }

        public string code { get; set; }

        public IEnumerable<RequestKeyValue> selectValue { get; set; }

        public string description { get; set; }
    }


    public class RequestEditParameter: RequestAddParameter
    {
        public int id { get; set; }
    }
}
