示例#1
0
        public void Create([FromBody] Account account)
        {
            string      s   = JsonConvert.SerializeObject(account);
            JsonMethods rep = new JsonMethods();

            rep.AddAccount(account);
        }
示例#2
0
 public ActionResult Create(Account account)
 {
     JsonRepository.JsonMethods rep = new JsonMethods();
     rep.AddAccount(account);
     return(RedirectToAction("Index"));
 }