Beispiel #1
0
        public bool update(Modelo prEntity)
        {
            try
            {
                Servico Entity = (Servico)prEntity;

                Servico lServico = Servicos.Find(Entity.servicoid);

                if (lServico != null && lServico != Entity)
                {
                    lServico.Update(Entity);
                }

                return(SaveChanges() > 0);
            }
            catch (Exception e)
            {
                return(false);
            }
        }