public void Create([FromBody] Account account) { string s = JsonConvert.SerializeObject(account); JsonMethods rep = new JsonMethods(); rep.AddAccount(account); }
public ActionResult Create(Account account) { JsonRepository.JsonMethods rep = new JsonMethods(); rep.AddAccount(account); return(RedirectToAction("Index")); }