public void Create(Traductor traductor)
 {
     try
     {
         factory.Create(traductor);
     }
     catch (Exception ex)
     {
         ExecptionManager.GetInstance().Process(ex);
     }
 }
 public void Create(Reporte reporte)
 {
     try
     {
         factory.Create(reporte);
     }
     catch (Exception ex)
     {
         ExecptionManager.GetInstance().Process(ex);
     }
 }
        public Traductor TranslateWord(Traductor traductor)
        {
            Traductor i = null;

            try
            {
                i = factory.TranslateWord <Traductor>(traductor);
                if (i != null)
                {
                    factory.Update(i);
                }
            }
            catch (Exception ex)
            {
                ExecptionManager.GetInstance().Process(ex);
            }

            return(i);
        }
        public void Create(Idioma idioma)
        {
            try
            {
                var c = factory.Retrieve <Idioma>(idioma);

                if (c != null)
                {
                    throw new BussinessException(1);
                }
                else
                {
                    factory.Create(idioma);
                }
            }
            catch (Exception ex)
            {
                ExecptionManager.GetInstance().Process(ex);
            }
        }
        public Idioma RetrieveById(Idioma idioma)
        {
            Idioma i = null;

            try
            {
                i = factory.Retrieve <Idioma>(idioma);
                if (i == null)
                {
                    throw new BussinessException(2);
                }
                else
                {
                    factory.Update(i);
                }
            }
            catch (Exception ex)
            {
                ExecptionManager.GetInstance().Process(ex);
            }

            return(i);
        }