public bool Add(Accesorios model)
        {
            try
            {
                _texereDbContext.Add(model);
                _texereDbContext.SaveChanges();
            }
            catch (System.Exception)
            {
                return(false);
            }

            return(true);
        }
        public bool Add(Modelos model)
        {
            try
            {
                _texereDbContext.Add(model);
                _texereDbContext.SaveChanges();
            }
            catch (Exception)
            {
                //TODO - agregar msj error tipo -> String.Format("Ha ocurrido la siguiente excepción: {0}", e.Message);
                return(false);
            }

            return(true);
        }
        public bool Add(LineasPedido model)
        {
            try
            {
                model.EstadoId = (int)EstadosEnum.Pendiente;
                _texereDbContext.Add(model);
                _texereDbContext.SaveChanges();
            }
            catch (Exception)
            {
                return(false);
            }

            return(true);
        }
        public bool Update(ColoresModelos model)
        {
            try
            {
                ColoresModelos originalModel = _texereDbContext.ColoresModelos.Single(cm =>
                                                                                      cm.ColorId == model.ColorId && cm.ModeloId == model.ModeloId
                                                                                      );

                originalModel.ColorId  = model.ColorId;
                originalModel.ModeloId = model.ModeloId;


                _texereDbContext.Update(originalModel);
                _texereDbContext.SaveChanges();
            }
            catch (System.Exception)
            {
                return(false);
            }

            return(true);
        }