using System.ComponentModel.DataAnnotations;

namespace Siger.Middlelayer.Repository.Request
{
    public class RequestAddProject
    {
        [Required(ErrorMessage = "CompanyIdIsEmpty")]
        public string companyid { get; set; }

        public string description { get; set; }

        public string finaloffer { get; set; }

        public string initialquotation { get; set; }

        [Required(ErrorMessage = "MobileIsEmpty")]
        public string mobile { get; set; }

        public string password { get; set; }


        [Required(ErrorMessage = "Username_NotNull")]
        public string realname { get; set; }

        [Required(ErrorMessage = "TitleIsEmpty")]
        public string title { get; set; }

        [Required(ErrorMessage = "SalesIdIsEmpty")]
        public string salesmid { get; set; }

        public string typeid { get; set; }

        public string is_password { get; set; }

        public int dutymid { get; set; }

        public string modular { get; set; }

        public string dashboard_ids { get; set; }

        public int pid { get; set; }
    }

    public class RequestUpdateProject : RequestAddProject
    {
        [Required(ErrorMessage = "IdIsEmpty")]
        public int id { get; set; }
    }
}
