using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;

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

        public string section_id { get; set; }

        public string user_mids { get; set; }

        public string interval { get; set; }

        public string shift_ids { get; set; }

        [Required(ErrorMessage = "EffectDateIsEmpty")]
        public string start_date { get; set; }
    }

    public class RequestUpdateWorkingGroup
    {
        public int id { get; set; }

        public int sectionid { get; set; }

        [Required(ErrorMessage = "NameIsEmpty")]
        public string name { get; set; }

        public string user_mids { get; set; }

        [Required(ErrorMessage = "EffectDateIsEmpty")]
        public string start_date { get; set; }
    }
}
