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