public ActionResult Edit(int id, LocationViewModel locationViewModel) { if (ModelState.IsValid) { _buisnessLogicClass.UpdateLocation(id, locationViewModel); return(View("Details", locationViewModel)); } else { return(BadRequest()); } }