public ActionResult EditBasic(Seller seller)
        {
            if (sellerRepo.Update(seller) == 1)
            {
                return(RedirectToAction("ViewProfile", "Seller"));
            }

            return(View("Error"));
        }
Example #2
0
 public void Put(int id, [FromBody] Seller value)
 {
     value.Id = id;
     _repository.Update(value);
 }
Example #3
0
 public Response Put([FromBody] Seller value)
 {
     return(repo.Update(value));
 }