public async Task <ActionResult <Contactos> > Postinfo(Contactos item)
        {
            _cont.ContactosItems.Add(item);
            await _cont.SaveChangesAsync();

            return(CreatedAtAction(nameof(GetInfo), new { id = item.Id }, item));
        }
예제 #2
0
        public async Task <ActionResult <Contacto> > PostContactoItem(Contacto item)
        {
            _context.ContactoItems.Add(item);
            await _context.SaveChangesAsync();

            return(CreatedAtAction(nameof(GetContactoItem), new { id = item.Id }, item));
        }