private String CheckVehicleModel(VehicleModel model)
        {
            var result = String.Empty;

            if (model.DistrictID <= 0)
            {
                result = "Select District, please.";
                return result;
            }
            //if (String.IsNullOrEmpty(model.Model))
            //{
            //    result = "Укажите марку автомобиля";
            //    return result;
            //}
            //if (String.IsNullOrEmpty(model.RegistrationNumber))
            //{
            //    result = "Укажите регистрационный номер автомобиля";
            //    return result;
            //}
            if (String.IsNullOrEmpty(model.PhoneNumber))
            {
                result = "Enter driver mobile phone number, please.";
                return result;
            }
            else if (_service.GetVehiclesByPhone("7" + model.PhoneNumber).Count() > 0)
            {
                result = String.Format("Vehicle with phone number {0} already exists.", "7" + model.PhoneNumber);
                return result;
            }

            return result;
        }
 public IHttpActionResult AddVehicle(VehicleModel model)
 {
     var result = CheckVehicleModel(model);
     if (String.IsNullOrEmpty(result))
     {
         model.PhoneNumber = "7" + model.PhoneNumber;
         var data = Mapper.Map<VehicleDto>(model);
         _service.AddVehicle(data);
         return Ok();
     }
     else
     {
         return Ok(result);
     }
 }