public async Task <IActionResult> PutDat([FromRoute] int id, [FromBody] ce_envios_estatus envEstatus)
        {
            if (!ModelState.IsValid)
            {
                return(BadRequest(ModelState));
            }

            if (id != envEstatus.IdStatus)
            {
                return(BadRequest());
            }

            FicLoDBContext.Entry(envEstatus).State = EntityState.Modified;


            try
            {
                await FicLoDBContext.SaveChangesAsync();
            }
            catch (DbUpdateConcurrencyException)
            {
                if (!DatoExiste(id))
                {
                    return(NotFound());
                }
                else
                {
                    throw;
                }
            }

            return(Ok(envEstatus));
        }
        public async Task <IActionResult> PostEstatus([FromBody] ce_envios_estatus estatus)
        {
            if (!ModelState.IsValid)
            {
                return(BadRequest(ModelState));
            }

            FicLoDBContext.ce_envios_estatus.Add(estatus);
            await FicLoDBContext.SaveChangesAsync();

            return(CreatedAtAction("GetDA", new { id = estatus.IdStatus }, estatus));
        }