Exemplo n.º 1
0
 public void Put(Posteo post)
 {
     throw new NotImplementedException();
 }
Exemplo n.º 2
0
 public async Task Agregar(Posteo posteo)
 {
     _context.Add(posteo);
     await _context.SaveChangesAsync();
 }
Exemplo n.º 3
0
 public IActionResult Post(Posteo posteo)
 {
     _repo.Add(posteo);
     _repo.Save();
     return(new CreatedResult(posteo.Id.ToString(), posteo));
 }