public ActionResult EditDealer(DealerViewModel viewModel) { if (ModelState.IsValid) { var result = _DealerManager.UpdateDealer(viewModel); return(RedirectToAction("ListDealer")); } return(View(viewModel)); }
public IHttpActionResult UpdateDealer(string email) { bool status = _dealerManager.UpdateDealer(email); if (status == false) { return(BadRequest()); } return(Ok(status)); }
// PUT: api/Dealer/5 public IHttpActionResult Put([FromBody] Dealers dealer) { var response = _IDealerManager.UpdateDealer(dealer); return(Ok(response)); }