Esempio n. 1
0
        public ActionResult Details(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            AutoParkingDto dbParking = db.Autoparking.Find(id);

            if (dbParking == null)
            {
                return(HttpNotFound());
            }
            return(View(dbParking));
        }
Esempio n. 2
0
 private void SetModelToUI(AutoParkingDto dto)
 {
     dateTimePicker1.Value   = dto.Filled;
     dateTimePicker2.Value   = dto.TimeOut;
     textBox1.Text           = dto.AutoName;
     textBox2.Text           = dto.AutoNumber;
     numericUpDown2.Value    = dto.Price;
     numericUpDown1.Value    = dto.ParkingNumber;
     textBox6.Text           = dto.FullName;
     textBox4.Text           = dto.PhoneNumber;
     textBox5.Text           = dto.Series;
     textBox3.Text           = dto.Number;
     comboBox1.SelectedIndex = (int)dto.Type;
 }