public async Task <ActionResult <MedicoItem> > PostMedicoItem(MedicoItem item)
        {
            _context.MedicoItems.Add(item);
            await _context.SaveChangesAsync();

            return(CreatedAtAction(nameof(GetMedicoItem), new { id = item.Id }, item));
        }
        public async Task <IActionResult> PutMedicoItem(int id, MedicoItem item)
        {
            if (id != item.Id)
            {
                return(BadRequest());
            }
            _context.Entry(item).State = EntityState.Modified;
            await _context.SaveChangesAsync();

            return(NoContent());
        }