public async Task <ActionResult <Maestrafactura> > PostTaskItem(Maestrafactura item)
        {
            _context.Maestrafacturas.Add(item);
            await _context.SaveChangesAsync();

            return(CreatedAtAction(nameof(GetTaskItem), new { id = item.MAESTRO_ID }, item));
        }
        public async Task <IActionResult> PutTaskItem(string id, Maestrafactura item)
        {
            if (id != item.MAESTRO_ID)
            {
                return(BadRequest());
            }
            //var task = _context.TaskItems.FindAsync(id);

            _context.Entry(item).State = EntityState.Modified;
            await _context.SaveChangesAsync();

            return(NoContent());
        }