コード例 #1
0
 /// <summary>
 /// Obtiene una entidad DeteccionAnimal por su Id
 /// </summary>
 /// <param name="deteccionAnimalID">Obtiene una entidad DeteccionAnimal por su Id</param>
 /// <returns></returns>
 public DeteccionAnimalInfo ObtenerPorID(int deteccionAnimalID)
 {
     try
     {
         Logger.Info();
         var deteccionAnimalDAL     = new DeteccionAnimalDAL();
         DeteccionAnimalInfo result = deteccionAnimalDAL.ObtenerPorID(deteccionAnimalID);
         return(result);
     }
     catch (ExcepcionGenerica)
     {
         throw;
     }
     catch (Exception ex)
     {
         Logger.Error(ex);
         throw new ExcepcionDesconocida(MethodBase.GetCurrentMethod(), ex);
     }
 }