Exemplo n.º 1
0
 public ActionResult Create(DAL.Models.House model)
 {
     try
     {
         DAL.DAL dal = new DAL.DAL();
         dal.AddProperty(model);
         return RedirectToAction("AddedOK", "PropertyAdded");
     }
     catch
     {
         return View("Index", model);
     }
 }