Exemplo n.º 1
0
        public void Create([FromBody] Account account)
        {
            string      s   = JsonConvert.SerializeObject(account);
            JsonMethods rep = new JsonMethods();

            rep.AddAccount(account);
        }
Exemplo n.º 2
0
 public ActionResult Create(Account account)
 {
     JsonRepository.JsonMethods rep = new JsonMethods();
     rep.AddAccount(account);
     return(RedirectToAction("Index"));
 }