Ejemplo n.º 1
0
        public bool UpdateConcreteIndication(ConcreteIndication concreteIndication)
        {
            var result = UpdateEntity <ConcreteIndication>(concreteIndication);

            if (result)
            {
                log.Info(string.Format("Concrete Indication {0} changed", concreteIndication.Code));
                return(true);
            }
            else
            {
                return(false);
            }
        }
Ejemplo n.º 2
0
        public bool DeleteConcreteIndication(ConcreteIndication indication)
        {
            indication.Id = ConcreteIndicationMethods.Instance.GetConcreteIndicationByCode(indication.Code).Id;
            var result = DeleteEntity <ConcreteIndication>(indication);

            if (result)
            {
                log.Info(string.Format("Concrete indication {0} deleted", indication.Code));
                return(true);
            }
            else
            {
                return(false);
            }
        }
Ejemplo n.º 3
0
        public string InsertConcreteIndication(ConcreteIndication concreteIndication)
        {
            concreteIndication.Code = GenerateConcreteIndicationNumber();
            var result = InsertEntity <ConcreteIndication>(concreteIndication);

            if (result)
            {
                log.Info(string.Format("Concrete Indication {0} saved", concreteIndication.Code));
                return(concreteIndication.Code);
            }
            else
            {
                return(string.Empty);
            }
        }