예제 #1
0
 public ActionResult EditDealer(DealerViewModel viewModel)
 {
     if (ModelState.IsValid)
     {
         var result = _DealerManager.UpdateDealer(viewModel);
         return(RedirectToAction("ListDealer"));
     }
     return(View(viewModel));
 }
예제 #2
0
        public IHttpActionResult UpdateDealer(string email)
        {
            bool status = _dealerManager.UpdateDealer(email);

            if (status == false)
            {
                return(BadRequest());
            }
            return(Ok(status));
        }
예제 #3
0
        // PUT: api/Dealer/5
        public IHttpActionResult Put([FromBody] Dealers dealer)
        {
            var response = _IDealerManager.UpdateDealer(dealer);

            return(Ok(response));
        }