public async Task <FotosAnuncio> Put(FotosAnuncio fotosAnuncio)
        {
            using (TECHCYCLEContext _context = new TECHCYCLEContext())
            {
                _context.Entry(fotosAnuncio).State = EntityState.Modified;
                await _context.SaveChangesAsync();

                return(fotosAnuncio);
            }
        }
        public async Task <FotosAnuncio> Delete(FotosAnuncio fotosAnuncio)
        {
            using (TECHCYCLEContext _context = new TECHCYCLEContext())
            {
                _context.FotosAnuncio.Remove(fotosAnuncio);
                await _context.SaveChangesAsync();

                return(fotosAnuncio);
            }
        }
        public async Task <FotosAnuncio> Post(FotosAnuncio fotosAnuncio)
        {
            using (TECHCYCLEContext _context = new TECHCYCLEContext())
            {
                await _context.FotosAnuncio.AddAsync(fotosAnuncio);

                await _context.SaveChangesAsync();

                return(fotosAnuncio);
            }
        }