public bool DeleteRegister(long registerId) { try { return(_registerRepository.DeleteRegister(registerId)); } catch (Exception ex) { ErrorLogger.LogError(ex.StackTrace, ex.Source, ex.Message); return(false); } }