public void Update([FromBody] Account account) { JsonMethods rep = new JsonMethods(); rep.UpdateAccount(account); }
public ActionResult Update(Account account) { JsonRepository.JsonMethods rep = new JsonMethods(); rep.UpdateAccount(account); return(RedirectToAction("Index")); }