public async Task <IActionResult> DeleteConfirmed(int id) { DocumentoEntity documentoEntity = await _context.Documento.FindAsync(id); _context.Documento.Remove(documentoEntity); await _context.SaveChangesAsync(); return(RedirectToAction(nameof(Index))); }
private DocumentoViewModel ToDocumenViewModel(DocumentoEntity documento) { return(new DocumentoViewModel { Id = documento.Id, Name = documento.Name, Document = documento.Document, FirstName = documento.FirstName, Email = documento.Email, pdfUrl = documento.pdfUrl, UploadDate = documento.UploadDate, User = documento.User }); }
// GET: DocumentoEntities/Details/5 public async Task <IActionResult> Details(int?id) { if (id == null) { return(NotFound()); } DocumentoEntity documentoEntity = await _context.Documento .FirstOrDefaultAsync(m => m.Id == id); if (documentoEntity == null) { return(NotFound()); } return(View(documentoEntity)); }
public void Update(DocumentoEntity t) { throw new NotImplementedException(); }
public int Insert(DocumentoEntity t) { throw new NotImplementedException(); }