public ActionResult EditBasic(Seller seller) { if (sellerRepo.Update(seller) == 1) { return(RedirectToAction("ViewProfile", "Seller")); } return(View("Error")); }
public void Put(int id, [FromBody] Seller value) { value.Id = id; _repository.Update(value); }
public Response Put([FromBody] Seller value) { return(repo.Update(value)); }