Example #1
0
 /// <summary>
 /// Eliminar Usuario
 /// </summary>
 /// <param name="id">Identificador del usuario</param>
 public static void Eliminar(int id)
 {
     try
     {
         UsuarioDal.Eliminar(id);
     }
     catch (SqlException ex)
     {
         Methods.GenerateLogsRelease("UsuarioBrl", "Eliminar", string.Format("{0} {1} Error: {2}", DateTime.Now.ToShortDateString(), DateTime.Now.ToShortTimeString(), ex.Message));
         throw ex;
     }
     catch (Exception ex)
     {
         Methods.GenerateLogsRelease("UsuarioBrl", "Eliminar", string.Format("{0} {1} Error: {2}", DateTime.Now.ToShortDateString(), DateTime.Now.ToShortTimeString(), ex.Message));
         throw ex;
     }
 }