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 }
public ActionResult EditProperty(AddProppertyViewModel model) { return(View()); // If we got this far, something failed, redisplay form }