Example #1
0
        public ActionResult AddingProperty(AddProppertyViewModel model)
        {
            if (ModelState.IsValid)
            {
                DataController.InsertProperty(model.Address, model.OpeningBid, model.Description, model.Documents, model.Location);

                return(RedirectToAction("Index", "Admin"));
            }
            else
            {
                return(View());
            }
            // If we got this far, something failed, redisplay form
        }
Example #2
0
 public ActionResult EditProperty(AddProppertyViewModel model)
 {
     return(View());
     // If we got this far, something failed, redisplay form
 }