public bool AddValuesBP(BPs values)
        {
            ModelMedAcContainer context = new WcfServiceLayer.ModelMedAcContainer();

            Utente ut = context.Utentes.Where(i => i.SNS == values.SNS).FirstOrDefault();

            if (ut == null)
            {
                return(false);
            }
            else
            {
                BP bp = new WcfServiceLayer.BP();
                bp.Valor1 = values.Value1;
                bp.Valor2 = values.Value2;
                bp.Data   = values.Date;
                bp.Alerta = values.Alert;

                bp.Utente = ut;


                context.BPs.Add(bp);
                context.SaveChanges();
                return(true);
            }
        }
        public bool AddValuesHR(HRs values)
        {
            ModelMedAcContainer context = new WcfServiceLayer.ModelMedAcContainer();

            Utente ut = context.Utentes.Where(i => i.SNS == values.SNS).FirstOrDefault();

            HR hr = new WcfServiceLayer.HR();

            hr.Valor  = values.Value;
            hr.Data   = values.Date;
            hr.Alerta = values.Alert;
            hr.Utente = ut;


            context.HRs.Add(hr);
            context.SaveChanges();
            return(true);
        }
        public bool AddValuesSPO(SPOes values)
        {
            ModelMedAcContainer context = new WcfServiceLayer.ModelMedAcContainer();

            Utente ut = context.Utentes.Where(i => i.SNS == values.SNS).FirstOrDefault();



            SPO spo = new WcfServiceLayer.SPO();

            spo.Valor  = values.Value;
            spo.Data   = values.Date;
            spo.Alerta = values.Alert;
            spo.Utente = ut;



            context.SPOes.Add(spo);
            context.SaveChanges();
            return(true);
        }