Exemple #1
0
        public string Post([FromBody] Usuario p)
        {
            var result = "false";

            if (objds.Create(p) == "1")
            {
                result = "true";
            }
            return(result);
        }
 public IActionResult Post([FromBody] Usuario p)
 {
     objds.Create(p);
     return(new OkObjectResult(p));
 }