Пример #1
0
 /// <summary>
 /// Constructor
 /// </summary>
 public AdditionalDriverChargeController(IAdditionalDriverService additionalDriverService)
 {
     if (additionalDriverService == null)
     {
         throw new ArgumentNullException("additionalDriverService");
     }
     this.additionalDriverService = additionalDriverService;
 }
        /// <summary>
        /// Constructor
        /// </summary>
        public AdditionalDriverChargeDetailController(IAdditionalDriverService additionalDriverService)
        {
            if (additionalDriverService == null && !ModelState.IsValid)
            {
                throw new ArgumentNullException("additionalDriverService");
            }

            this.additionalDriverService = additionalDriverService;
        }