Example #1
0
 public ActionResult Post([FromBody] Persona persona)
 {
     context.Personas.Add(persona);
     context.SaveChanges();
     return(new CreatedAtRouteResult("ObtenerAutor", new { Id = persona.IdPersona }, persona));
 }