using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using r12.Models;

namespace r12.Controllers
{
    public class HomeController : Controller
    {
        //
        // GET: /Home/

        public ActionResult Index()
        {
            return View();
        }

        public ActionResult Edit(int PersonId)
        {
            Person p = new Person() { PersonId = 683, FirstName = "Blaise", LastName = "Pascal", BirthDate = new DateTime(1623, 6, 19), IsApproved=true };
            p.HomeAddress = new Address() { Line1 = "15 Rue Pensee", Line2 = "Clermont-Ferrand", City = "Paryż", Country = "Francja", PostalCode = "27574" };
            return View(p);
        }

        public ActionResult Display(int PersonId)
        {
            Person p = new Person() { PersonId = 683, FirstName = "Blaise", LastName = "Pascal", BirthDate = new DateTime(1623, 6, 19), IsApproved = false };
            p.HomeAddress = new Address() { Line1 = "15 Rue Pensee", Line2 = "Clermont-Ferrand", City = "Paryż", Country = "Francja", PostalCode = "27574" };
            return View(p);
        }
    }
}
